summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: add license notices, change from gplv2-only to gplv2-or-laterKarel Zak2007-07-2337-78/+287
| | | | | | | The previous "gplv2-only" was copy&past mistake. This re-licensing is correct -- there is not any other contributor to this code. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: missing header when NLS is disabledGabriel Barazer2007-07-231-1/+5
| | | | | | | | | | | | Compiling utils fail when disable NLS with the --disable-nls switch. "mkfs.c:46: error: 'LC_ALL' undeclared (first use in this function)" It is due to a missing locale.h header : When enabling NLS, nls.h includes libintl.h, which in turn includes locale.h. When disabling NLS, libintl.h isn't anymore included nor locale.h, which is needed for the setlocale() calls. Signed-off-by: Gabriel Barazer <gabriel@oxeva.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use relative paths when sourcing filesMike Frysinger2007-07-2334-69/+69
| | | | | | | | | The "." command will search $PATH before $PWD if the argument specified contains no path qualifiers which can cause problems if you happen to have something in $PATH named the same. The attached patch changes all of the ". <foo>" in the tests subdir. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cytune: remove linux/tty.h inclusionKarel Zak2007-07-191-1/+0Star
| | | | | | The <linux/tty.h> file is empty. It's __KERNEL__ only. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove asm/page.h testKarel Zak2007-07-181-8/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add warning when libuuid is not foundKarel Zak2007-07-181-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++Karel Zak2007-07-172-1/+5
| | | | | | Increment release number to v2.13-rc2. Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update po filesKarel Zak2007-07-1720-4514/+6954
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update release notesKarel Zak2007-07-173-9/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login-utils: remove deprecated sigsetmask() from wallKarel Zak2007-07-171-1/+3
| | | | | | The sigsetmask() is deprecated in favor of sigprocmask(). Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: check returns in fdisk from partition changesMike Frysinger2007-07-165-15/+21
| | | | | | | | | currently the code in fdisk which changes partition types is a bit fragile ... it assumes the partition type succeeded instead of checking the user input or for errors. ive tweaked the sub functions to return a value indicative of the functions' success and fdisk now checks/reports based on that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* schedutils: fix chrt docs and pid=0 usageMatthias Koenig2007-07-162-7/+9
| | | | | | | Fix some documentation bugs for chrt. Make it work with PID 0, which means current process. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* mount: add acl option documentation for ext3 and reiserfsMatthias Koenig2007-07-161-0/+21
| | | | Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* login-utils: remove unwanted newlines from wallKarel Zak2007-07-161-1/+2
| | | | | | Prevent wall from adding an empty newline to every new line. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2007-07-161-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc-util: new rtcwake commandBernhard Walle2007-07-164-2/+562
| | | | | Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: prefer SYS_ioprio_{set,get} from glibc to hardcoded versionKarel Zak2007-07-161-26/+33
| | | | | | | It's better to use glibc SYS_ioprio_{set,get} definitions rather than an incomplete (not all archs) and hardcoded version from ionice.c. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove "make mrproper", git-clean is good enoughKarel Zak2007-07-122-15/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sys-utils: add arch(1) back to the official treeKarel Zak2007-07-116-3/+88
| | | | | | | | | | | | | | This patch add arch(1) back to util-linux source code tree, but the command is not installed by defautl. For more details see "./configure --help". The arch command is deprecated in favor of "uname -m" (coreutils). The latest (6.9+) version of coreutils also supports arch(1) as an alias to "uname -a". Please, if you need arch(1) use the coreutils implementation. Signed-off-by: Karel Zak <kzak@redhat.com>
* whereis: add lib64 pathsKarel Zak2007-07-111-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove libtoolKarel Zak2007-07-114-41/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove dependence on helpers/libpreload-time.soKarel Zak2007-07-104-25/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: add test codeKarel Zak2007-07-102-1/+16
| | | | | | | This patch allows to override the time() and define a different time by TEST_TIME env. variable. The code has to be compiled with -DTEST_CAL. Signed-off-by: Karel Zak <kzak@redhat.com>
* also search for __stext in readprofileMike Frysinger2007-07-101-1/+2
| | | | | | | Some architectures have a single underscore prefix in their ABI, so there will be no "_stext" symbol, just "__stext". Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* lomount.c: don't use mlockall if CRYPT_NONEMasatake YAMATO2007-07-101-6/+7
| | | | | | | | | | | | | | | loop back mounting emits two system calls: mount and mlockall. mount is obviously needed. mlockall is needed for encryption. As the result both CAP_SYS_ADMIN and CAP_IPC_LOCK are needed to do loopback mounting. The problem is that CAP_IPC_LOCK is always needed through my command doesn't need encryption. With the following patch, mount calls mlockall only when encryption is needed. Signed-off-by: Masatake YAMATO <jet@gyve.org>
* fdisk: when generating a DOS disk label, give it an IDH. Peter Anvin2007-07-101-10/+99
| | | | | | | | | Newer Micro$oft operating systems (NT 3 and later) put a 4-byte signature in the MBR at offset 440 decimal. Generate a random such signature when creating a new disk label, and allow it to be changed. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: do not complain about regular filesH. Peter Anvin2007-07-101-1/+3
| | | | | | | | | fdisk complains that it doesn't understand regular files. This can be trivially fixed. Also, modes are conventionally given in octal, not hex. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* docs: add release notesKarel Zak2007-07-032-1/+358
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: cleanup before releaseKarel Zak2007-07-036-20/+80
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO fileKarel Zak2007-07-031-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update po filesKarel Zak2007-07-0321-29457/+33210
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: add NLS supportKarel Zak2007-07-031-11/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-0375-18/+231
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use loop= option when mounting by /sbin/mount.<type>Karel Zak2007-07-021-2/+3
| | | | | | | The mount(8) calls external mount programs (/sbin/mount.<type>) without the loop=/dev/loopN option. This patch fix this bug. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix linking when ncurses is built with --with-termlib=tinfoArkadiusz Miskiewicz2007-07-023-0/+18
| | | | | | | | | | When system ncurses is built with --with-termlib=tinfo option then there are two libraries - libtinfo (which contains terminal related functions) and libncurses (rest). Correctly link against libtinfo in such case. Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
* wall: fix O_NONBLOCK usageKarel Zak2007-07-021-2/+3
| | | | | From: Alan Curry <pacman@TheWorld.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix stupid typo in GPT checker callKarel Zak2007-07-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix "differ in signedness" compiler warningsKarel Zak2007-07-021-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix "may be used uninitialized" compiler warningsKarel Zak2007-07-021-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix "differ in signedness" compiler warningsKarel Zak2007-07-021-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: many significant improvements and fixes to Sun label handlingDavid Miller2007-07-023-372/+329Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Properly describe the exact layout and fields of the sun disk label. Several fields were incorrectly mentioned and others wrongly sized. 2) Properly set the version, sane, and num_partitions fields. Because we weren't doing this, programs such as Solaris's format and the Solaris kernel itself refused to recognize our disk labels as valid. 3) Move SSWAP*() macros into fdisksunlabel.c as there is no reason for them to be exposed to the rest of fdisk. 4) Kill the sun_predefined_drives array hack and assosciated code. Instead size the disk and figure out the geometry properly just like the SGI and MSDOS partition handling do, by means of the HD_GETGEO ioctl() and disksize(). 5) If the disk label read is found to not have the proper values set in version, sane, or num_partitions, fix them, recompute the label checksum, dirty the disk label, and let the user know what we did and that the fixed values will be written out if they 'w'. This gives users an easy way to fix up disk labels created by disk labelling programs which had this bug. 6) Create a sun_sys_getid() function so that fdisk.c does not need to reference the sun disk label details directly, just like the SGI code does. Signed-off-by: David S. Miller <davem@davemloft.net>
* ionice: fix ionice build on sparcDavid Miller2007-07-021-0/+3
| | | | | | Provide the proper syscall numbers for this architecture. Signed-off-by: David S. Miller <davem@davemloft.net>
* sys-utils: added setarch commandKarel Zak2007-07-023-3/+310
| | | | | | This patch merges setarch command to util-linux-ng code. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup architecture conditionalsKarel Zak2007-07-023-13/+22
| | | | | | | This patch also add some new architectures for AM_CONDITIONAL(ARCH_ ...) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup sys-utils/ rdev symlinksKarel Zak2007-06-291-9/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blockdev: cleanup usage() and update man pageKarel Zak2007-06-292-8/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blockdev: add BLKFRAGET/BLKFRASET ioctlsKarel Zak2007-06-292-0/+14
| | | | | | | | | | | | | | In Linux 2.6 the BLKRASET ioctl has the desired effect for mounted file-systems. In Linux 2.4 it appears to set the number of blocks to read-ahead on the *device* as opposed to within a *file*, and the maximum value of this number is 255. As a result the invocation of blockdev will fail on Linux 2.4 for any usefully large value of READAHEAD, and will not in any case have the desired affect for fragmented files. (Based on the blockdev-getfra-setfra.patch Debian patch.) Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: check gethostname() return valueKarel Zak2007-06-291-12/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: add 'O' escape code to display domain nameKarel Zak2007-06-292-1/+41
| | | | | | | | | This patch add a new 'O' escape code to display domain name by issue-file (/etc/issue) output. (Based on an Gentoo patch.) Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: needs to handle special mountprog even on guessed file systems.Karel Zak2007-06-283-19/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>