summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* TODO: add request to use nl_langinfo()Karel Zak2008-12-122-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "login-utils: several strings without gettext calls"Karel Zak2008-12-124-19/+16Star
| | | | | | | This reverts commit 64fefaf5bffdd4041190f1e5ed4b5d0100638c0d. It does not make sense to localize config options (wdays in checktty.c) and debug messages (main() in checktty.c.
* mount: fix mount_static_LDADDKarel Zak2008-12-121-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add md5 regression testKarel Zak2008-12-084-0/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIANKarel Zak2008-12-082-4/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add __BYTE_ORDER to md5.cKarel Zak2008-12-081-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add MD5 regression testKarel Zak2008-12-063-1/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add swabN() regression testKarel Zak2008-12-056-1/+167
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: swapheader.h is missing in Makefile.amKarel Zak2008-12-051-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: (and fsck) rename bitops.hKarel Zak2008-12-054-6/+6
| | | | | | | This patch renames bitops.h to minix_bitops.h to avoid possible collisions with global include/bitops.h file. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add missing AC_C_BIGENDIANKarel Zak2008-12-051-0/+1
| | | | | | This configure test is required in include/bitops.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: add swap format detection and pagesize checkMatthias Koenig2008-12-052-2/+130
| | | | | | | | | | | | | | | | As swap format depends on the pagesize being used, it may happen that the pagesize of the swap space and the current pagesize differ, resulting in swapon to fail when trying to enable such a swap space. In such a case swapon should rather reinitialize the swap space. [kzak@redhat.com: - add blkdev.c to the global swapon_SOURCES - don't try to detect for huge pages on small swap areas (or when read() returns less than MAX_PAGESIZE) - fix fprintf() format string] Co-Author: Olaf Hering <olh@suse.de> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* include: move swapheader.h to includeMatthias Koenig2008-12-052-1/+6
| | | | | | | [kzak@redhat.com: add ifndef _SWAPHEADER_H] Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: remove spurious newline from mount.8Mike Frysinger2008-12-051-2/+1Star
| | | | | | | The man page display shows quote marks instead of being interpreted by the .B statement and hidden away due to a spurious newline. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* setterm: fix -blank man pageKarel Zak2008-12-051-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: Allow lock directoryAlexey Gladkov2008-12-032-4/+11
| | | | | | | | | | With this patch, you can lock directory. Additionally, lockfile opens with O_NOCTTY. Try to open file with O_CREAT flag first, and without it if open fails with EISDIR. Suggested by H. Peter Anvin. Signed-off-by: Alexey Gladkov <legion@altlinux.org>
* docs: add feature-requests from RH bugzilla to TODO listKarel Zak2008-12-021-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use subsections in mount.8 DESCRIPTIONKarel Zak2008-11-271-56/+81
| | | | | | | The DESCRIPTION section is huge non-structuralized mess. This patch is attempt to make this part of the man page more readable. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: create separate section for fs-independent options in mount.8Karel Zak2008-11-271-19/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: reorder list of options in mount.8Karel Zak2008-11-271-83/+89
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add i_version supportKarel Zak2008-11-273-0/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tailf: unistd.h is included more than onceKarel Zak2008-11-261-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rdev: cleanup includesKarel Zak2008-11-261-10/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: cleanup includesKarel Zak2008-11-261-5/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: sys/types.h and time.h are included more than onceKarel Zak2008-11-261-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: clock.h is included more than onceKarel Zak2008-11-261-4/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* getopt: remove unnecessary ifdefsKarel Zak2008-11-262-11/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: rename ENABLE_CMDTAGQ macroKarel Zak2008-11-262-2/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add checkconfig to top-level MakefileKarel Zak2008-11-262-15/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: rename codecheck-config to checkconfig.shKarel Zak2008-11-261-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add checkincludes.pl (from linux kernel)Karel Zak2008-11-262-0/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix man page typoKarel Zak2008-11-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove useless return value checks in testing scriptsAmérico Wang2008-11-2017-204/+133Star
| | | | Signed-off-by: WANG Cong <wangcong@zeuux.org>
* tests: update namei reg.testKarel Zak2008-11-191-7/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: clean up the testing scriptsAmérico Wang2008-11-193-9/+5Star
| | | | | | Do some cleanups to the testing scripts. Signed-off-by: WANG Cong <wangcong@zeuux.org>
* build-sys: add --disable-mountAlon Bar-Lev2008-11-192-13/+28
| | | | | | | | | | | I use busybox for most of the utilities, still lacks a few that I wish to use from util-linux... So mount comes from busybox. And during the cross compile I don't want to compile the mount dependencies only to make the configure script happy... Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* pivot_root: clean upKarel Zak2008-11-191-15/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move pivot_root(8) to sys-utilsKarel Zak2008-11-197-21/+21
| | | | | | | | This patch moves pivot_root.{8,c) from mount/ to sys-utils/ directory. There is not ant relation between pivot_root source code and the rest of code in the mount. Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add warning about read-only modeKarel Zak2008-11-181-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: try to set up loop readonly if EACCESMatthias Koenig2008-11-181-1/+2
| | | | | | | | | | | | | Currently mounting/losetup an image fails if it is accessable readonly. There are no problems if it is a file on a local filesystem. It seems only to happen if it is a NFS mounted image, which is read-write in permission but with root_squash option. set_loop checks only for EROFS to retry open with readonly mode, but in this case we get EACCES. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* cfdisk: accept yes/no as fallbackMatthias Koenig2008-11-141-2/+4
| | | | | | | | | | | Accept "yes" or "no" as fallback in case the question has not been translated. [kzak@redhat.com: note that rpmatch(3) looks at only the first character of response, but we need have to check the full yes/no string.] Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* mkfs.minix: fix size detectionMatthias Koenig2008-11-131-2/+7
| | | | | | | | blkdev_get_size returns size in bytes, so BLOCKS has to be calculated accordingly. Use stat value for size if device is not a block device. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* fdisk: add some missing includesMatthias Koenig2008-11-131-0/+4
| | | | | | | | | | | Currently these missing includes prevent that HDIO_GETGEO is defined, so is_probably_full_disk always uses the "silly heuristic" method. [kzak@redhat.com: add also unistd.h] Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* namei: add --owners and --long optionsKarel Zak2008-11-131-7/+138
| | | | | | | | | | | | | | | Added file owner and group name printing support. The groupnames and usernames are cached to avoid an extra overhead. This implementation does not use fixed width of user/group name columns. $ namei -l /var/www/cgi-bin f: /var/www/cgi-bin drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root www drwxr-xr-x root root cgi-bin Signed-off-by: Karel Zak <kzak@redhat.com>
* namei: new re-written versionKarel Zak2008-11-132-338/+303Star
| | | | | | | | | | | | | | This new version: * not based on chdir() * implemented without recursion (does not depend on stack size) * list of directories is stored in allocated memory (the code is extendable with new functionality (e.g. show usernames, groupnames, selunux contexts, ...). * supports long command line options * adds a new command line option: -n, --nosymlinks don't follow symlinks Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: support +cylinder notationKarel Zak2008-11-131-2/+4
| | | | | | | | Currently fdisk does not support +cylinder notation and reports "Unsupported suffix: ''". Reported-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: read /proc/partitions in more robust wayKarel Zak2008-11-131-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cannot create partition with starting beyond 1 TBKarel Zak2008-11-131-1/+1
| | | | | | | | fdisk(8) uses "unsigned long long" for all internal calculations -- let use it for start of partition too. Address-Red-Hat-Bugzilla: #471369 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix Compilation ErrorCAI Qian2008-10-231-1/+1
| | | | | | This patch fixes a compilation error in the latest tree. Signed-off-by: CAI Qian <caiqian@cclom.cn>
* lscpu: return EXIT_SUCCESS at the endMatthias Koenig2008-10-221-1/+1
| | | | Signed-off-by: Matthias Koenig <mkoenig@suse.de>