Changes between v2.13-pre7 (util-linux) and v2.13-rc1 (util-linux-ng) --------------------------------------------------------------------- commit 5196eb4b008cc32a4e9d7ad3595dda993b465ba4 Author: Karel Zak Date: Tue Jul 3 23:16:13 2007 +0200 docs: add release notes Signed-off-by: Karel Zak commit 6a5486fdede27cc3aa47c60e89c1fcb7b6bfb47a Author: Karel Zak Date: Tue Jul 3 13:14:36 2007 +0200 docs: cleanup before release Signed-off-by: Karel Zak commit b622c840d3b02bc803b125a717edb7dba54d2707 Author: Karel Zak Date: Tue Jul 3 01:55:06 2007 +0200 docs: update TODO file Signed-off-by: Karel Zak commit 0027a8b16f33af81459753e85519777a7fe49437 Author: Karel Zak Date: Tue Jul 3 01:48:28 2007 +0200 po: update po files Signed-off-by: Karel Zak commit a5b47e0a399be20b9331a38b7a3ab694c85bd92a Author: Karel Zak Date: Tue Jul 3 01:36:03 2007 +0200 setarch: add NLS support Signed-off-by: Karel Zak commit 86d62711a92e36942f5dda9ba4a0b28578c64caa Author: Karel Zak Date: Tue Jul 3 01:17:04 2007 +0200 man pages: add "AVAILABILITY" section Signed-off-by: Karel Zak commit 2e039577c5eb895fab35aed136345a0c07d7a587 Author: Karel Zak Date: Mon Jul 2 23:35:08 2007 +0200 mount: use loop= option when mounting by /sbin/mount. The mount(8) calls external mount programs (/sbin/mount.) without the loop=/dev/loopN option. This patch fix this bug. Signed-off-by: Karel Zak commit 46e711180f6c7ef6b52373438a4bf0cecb7c646c Author: Arkadiusz Miskiewicz Date: Tue Jun 19 20:58:04 2007 +0200 build-sys: fix linking when ncurses is built with --with-termlib=tinfo 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 commit a6f628832a1e6292cfdf9074ba32ba8cd21f899d Author: Karel Zak Date: Mon Jul 2 15:58:09 2007 +0200 wall: fix O_NONBLOCK usage From: Alan Curry Signed-off-by: Karel Zak commit 652de88cef7f32af6d035d7cc29d6073ae50741e Author: Karel Zak Date: Mon Jul 2 15:41:48 2007 +0200 cfdisk: fix stupid typo in GPT checker call Signed-off-by: Karel Zak commit 46151e8772563f0dffe3901575dd8999f9c2fd43 Author: Karel Zak Date: Mon Jul 2 15:39:58 2007 +0200 sfdisk: fix "differ in signedness" compiler warnings Signed-off-by: Karel Zak commit f27bec298fd8c5dcb2ecdafa18c8087f536c1d35 Author: Karel Zak Date: Mon Jul 2 15:30:27 2007 +0200 sfdisk: fix "may be used uninitialized" compiler warnings Signed-off-by: Karel Zak commit 3a9215ddc45e85b44d3b8bb0fe8cd3abe9e3e71c Author: Karel Zak Date: Mon Jul 2 15:06:13 2007 +0200 fdisk: fix "differ in signedness" compiler warnings Signed-off-by: Karel Zak commit 899736f12f276341294145f464dcc988cd94cb97 Author: David Miller Date: Fri Jun 29 15:50:21 2007 -0700 fdisk: many significant improvements and fixes to Sun label handling 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 commit eba338783eaf3211970c60c16e0792a83040974a Author: David Miller Date: Fri Jun 29 15:51:17 2007 -0700 ionice: fix ionice build on sparc Provide the proper syscall numbers for this architecture. Signed-off-by: David S. Miller commit 8b3a46d2b023e3f4d5cd6778cdf17ecd3d5911d7 Author: Karel Zak Date: Mon Jul 2 13:48:15 2007 +0200 sys-utils: added setarch command This patch merges setarch command to util-linux-ng code. Signed-off-by: Karel Zak commit e782f1d4000686207152dd31a12d67457a684ea5 Author: Karel Zak Date: Mon Jul 2 13:21:06 2007 +0200 build-sys: cleanup architecture conditionals This patch also add some new architectures for AM_CONDITIONAL(ARCH_ ...) Signed-off-by: Karel Zak commit 2dfd8e6276ca23ad1d8e7e7d14dcbcf7ed3b1c48 Author: Karel Zak Date: Fri Jun 29 15:12:33 2007 +0200 build-sys: cleanup sys-utils/ rdev symlinks Signed-off-by: Karel Zak commit a424171cd15ca39da64e8b3ba0c38ca814f981f1 Author: Karel Zak Date: Fri Jun 29 12:06:58 2007 +0200 blockdev: cleanup usage() and update man page Signed-off-by: Karel Zak commit c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e Author: Karel Zak Date: Fri Jun 29 11:38:54 2007 +0200 blockdev: add BLKFRAGET/BLKFRASET ioctls 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 commit d1a3470951bf7b34d79444047381d9ed4d09db39 Author: Karel Zak Date: Fri Jun 29 02:27:27 2007 +0200 agetty: check gethostname() return value Signed-off-by: Karel Zak commit e61e66bd95e20d1a9a101c5a2efb4c638ca732f1 Author: Karel Zak Date: Fri Jun 29 01:50:50 2007 +0200 agetty: add 'O' escape code to display domain name 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 commit bd1eae0f553ff69f139102a4c8da561cba8c687b Author: Karel Zak Date: Thu Jun 28 01:23:49 2007 +0200 mount: needs to handle special mountprog even on guessed file systems. Signed-off-by: Karel Zak commit e7fa917a33876ef163f8e3f348d681199c360094 Author: Karel Zak Date: Wed Jun 27 23:49:56 2007 +0200 fdisk: add MAC label detection This patch is based on the old Suse util-linux-2.11q-fs_mac.diff patch. Signed-off-by: Karel Zak commit 024353c9ea8a53da522a512fd2a4029a4aad3da3 Author: Karel Zak Date: Wed Jun 27 23:36:08 2007 +0200 fdisk: move duplicate stuff from fdisk*label.h to fdisk.h Signed-off-by: Karel Zak commit d99f0140f71cbdce7aae8128e7400bc1cf22fe53 Author: Karel Zak Date: Wed Jun 27 17:32:51 2007 +0200 losetup: add long options and fix man page Signed-off-by: Karel Zak commit 6ffa7c9383a3fca31b5f70eb8d3528d0b09980aa Author: Matthias Koenig Date: Wed Jun 20 15:17:47 2007 +0200 mount: loop device race condition Fix race in losetup Retry acquiring a loop device if set_loop failed with EBUSY Signed-Off-By: Matthias Koenig Signed-off-by: Karel Zak commit 95ba33f7a4ed199bc749264359a973a394ea09c4 Author: Matthias Koenig Date: Wed Jun 20 15:17:45 2007 +0200 mount: loop device race condition Fix race in mount -o loop Retry acquiring a loop device if the setup failed with EBUSY. Signed-Off-By: Matthias Koenig Signed-off-by: Karel Zak commit 653872612c2249dd892f5f2f6cc9b1e3abd24b45 Author: Luciano Chavez Date: Thu Mar 8 21:07:52 2007 -0600 sfdisk: setting default geometry values The cfdisk and fdisk set defaults for heads and sectors in order to handle a situation when the get_geometry() ends up with zeroes for the disk geometry for device-mapper devices. This patch add same functionally to sfdisk. You know that a dmsetup setgeometry of the the dm device can be used to circumvent the issue but users may not immediately realize they need to do that. commit 9f70f8b143d591b44b57454bf346bc291875dd75 Author: Kay Sievers Date: Thu Jun 21 13:31:52 2007 +0200 mount: use encoded labels for volume_id The current version of libvolume_id exports the encoding function for the symlinks names, so slashes in labels and other chars, that don't really fit into symlink names, will work as expected with LABEL=. commit 6b9cda90f45bdaeb7b0f7b05c40be3b1d8a94472 Author: Karel Zak Date: Tue Jun 19 16:42:07 2007 +0200 ddate: fix compiler warnings Signed-off-by: Karel Zak commit f7e3dc0533d37b56af4afe8cd38212d54ae9fce5 Author: Cliff Wickman Date: Mon Jun 11 15:24:45 2007 -0500 taskset: independent of hardcoded NR_CPUS max. This patch makes the taskset command independent of the system's maximum number of cpus (CONFIG_NR_CPUS). The maximum for CONFIG_NR_CPUS is a moving target. With this patch the size of the systems's cpumask_t is gotten from sched_getaffinity(2). This patch uses variable length bitmasks borrowed from Paul Jackson's variable size bitmask routines (hence I kept his copyright notice). This replaces the use of the glibc CPU_SETSIZE, CPU_SET, CPU_ZERO and CPU_ISSET macros which depend on a hardcoded size for cpu_set_t. (also fixes one little nit: the -V option is "-v" in the built-in help, so changed the built-in help) Signed-off-by: Cliff Wickman Signed-off-by: Karel Zak commit ba3809b01233e6afb24e90018700b3f145c2aee7 Author: Karel Zak Date: Mon Jun 18 15:44:02 2007 +0200 losetup: add a new option -s The losetup provides an -f option to discover an unused loop device. As implemented, it is racy. The problem is that -f prints the loop device to stdout only when used standalone. This means a script has to do: lodev=$(losetup -f) losetup $lodev $filename which is racy if another script may be running. This patch add a new option '-s'. The '-s' option prints device name if the -f option and a file argument are present. For example: lodev=$(losetup -f -s $filename) Signed-off-by: Karel Zak commit d20b54c4bbd757f0f2604a2f3ac295961100fedd Author: Karel Zak Date: Fri Jun 15 21:32:45 2007 +0200 tests: add mount /dev/symlink test Signed-off-by: Karel Zak commit 1b5417aca1978450312303fa144d327ad1ca5aa7 Author: Karel Zak Date: Fri Jun 15 15:55:10 2007 +0200 tests: add support for suid programs Signed-off-by: Karel Zak commit 140603be64403fc010645af855835f2abac2adb7 Author: Karel Zak Date: Fri Jun 15 15:47:22 2007 +0200 mount: rewrite getfs_by_specdir() without mem leaks Signed-off-by: Karel Zak commit f178b56e279f263246ac399e5ca19d751bef3ee1 Author: Karel Zak Date: Fri Jun 15 15:24:45 2007 +0200 mount: fix typo in error message Signed-off-by: Karel Zak commit b002d0212d3683f3bdcbfeb5c909522d937f8b4c Author: Karel Zak Date: Fri Jun 15 11:29:04 2007 +0200 tests: fix ts_fstab_add function Signed-off-by: Karel Zak commit 71be1ee4a1386c141272df32b1184857aa5c9070 Author: Karel Zak Date: Fri Jun 15 10:17:51 2007 +0200 tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans Signed-off-by: Matthias Koenig Signed-off-by: Karel Zak commit 69c47f8089951b7bb22fd0edb47063bff4400f2c Author: Karel Zak Date: Thu Jun 14 14:50:14 2007 +0200 getopt: remove old unused files Signed-off-by: Karel Zak commit 039837878d63425bcaaf0c9d999c49ed843b253b Author: Karel Zak Date: Thu Jun 14 14:43:41 2007 +0200 mcookie: remove non-linux code Something like #ifdef __linux__ is non-sense in util-linux where everything depend on linux. Signed-off-by: Karel Zak commit 94ed908c8d2ef5bfb1d6119babc3d00f52a27ca7 Author: Karel Zak Date: Thu Jun 14 13:55:37 2007 +0200 mkfs.cramfs: cleanup HAVE_ macros usage It's bad to use any HAVE_* macros for anything other than for build-system (autotools) stuff. Signed-off-by: Karel Zak commit 4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b Author: Karel Zak Date: Thu Jun 14 13:32:32 2007 +0200 build-sys: fix HAVE_NCURSES The HAVE_NCURSES in config.h is required by the misc-utils/cal.c. Signed-off-by: Karel Zak commit 41d8815ab7afb67a8b5b55d514f5e9bbe1b7d9fa Author: Karel Zak Date: Thu Jun 14 11:53:39 2007 +0200 swapon: cleanup PATH_ macros and tailing white-spaces Signed-off-by: Karel Zak commit 96aef66687db1e5fe06803ba1d244fd9da9f4d13 Author: Karel Zak Date: Wed Jun 13 21:43:41 2007 +0200 misc-utils: remove old cal test Signed-off-by: Karel Zak commit ffa63a3dbbf8c4724e76cff104626a8cf5686223 Author: Mike Frysinger Date: Wed Jun 13 05:52:55 2007 -0400 swapon: fix swapon headers and syscalls This patch scrubs anything related to SWAPON_NEEDS_TWO_ARGS as this is only relevant for < linux-1.3.2 and i say it's about time we let it go. I also cleaned up the system call fallback logic as the _syscall#() macros are the deprecated interface in favor of the real syscall() function. The asm/page.h gets the boot as nothing in swapon.c utilizes defines from it while unistd.h gets always included as defines/functions are used from it other than just swapon(). Signed-off-by: Mike Frysinger commit a256ea01ff2bd421697223c0e02e0bb028b16538 Author: Karel Zak Date: Tue Jun 12 17:46:16 2007 +0200 cal: widechar code cleanup This patch make widechar code (cal headers initialization) more robust. That's possible to format wide char strings by swprintf() and non-widechar version by sprintf(). This is better than the old solution with wcscat(). Signed-off-by: Karel Zak commit 174809cff0d8e123eb87cc7610a5677716970cec Author: Karel Zak Date: Tue Jun 12 16:59:03 2007 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak commit f406193831701d4bcb0b34222841dd1deec6296c Author: Karel Zak Date: Tue Jun 12 16:45:32 2007 +0200 cal: ifdef cleanup, non-curses/tempcap code fixes This patche: - removes extra #ifdef-s, - fixes \n usage when compiled without curses/termcap Signed-off-by: Karel Zak commit 94b269193b1fe2fe51762b4595daff95452f703e Author: Karel Zak Date: Tue Jun 12 16:08:58 2007 +0200 cal: fix a segfault and -3m highlighting Fixes a segfault for certain values of $TERM Fixes alignment issues when the highlighted day (today) is in the last week of the month. Signed-off-by: Pádraig Brady Signed-off-by: Karel Zak commit 15ec3ddf1993d114758f105dfa46c734d334e5fa Author: Karel Zak Date: Tue Jun 12 13:26:05 2007 +0200 tests: add cal -y test Signed-off-by: Karel Zak commit a150a4a4eec491b0ffd46c44e1e991f3ea3d0bc5 Author: Karel Zak Date: Tue Jun 12 13:05:00 2007 +0200 tests: add cal -3 test Signed-off-by: Karel Zak commit c99539b00fce225d81cdb1721a5a3a267e25b80a Author: Karel Zak Date: Tue Jun 12 12:48:36 2007 +0200 tests: add cal -1 test Signed-off-by: Karel Zak commit 1d9acab1c14a4464a757dbd5d68a1bf1dca117b2 Author: Karel Zak Date: Mon Jun 11 14:45:32 2007 +0200 tests: pass all arguments to ts_init, add ts_has_option function This patch: - replaces "$1" with "$*" for ts_init function - add ts_has_option function - removes some tailing white-spaces Signed-off-by: Karel Zak commit 883fff9f85f5ffb68614e6c3740712aafc18d6f4 Author: Karel Zak Date: Tue Jun 5 21:53:55 2007 +0200 docs: clean up TODO file and add a new resuest for 2.14 Signed-off-by: Karel Zak commit 04b7cb3216932decb5ce0f62ace580cd91bc8c2e Author: Karel Zak Date: Mon Jun 4 15:16:18 2007 +0200 text-utils: fix the more command compilation against termcap The build-sys (text-utils/Makefile.am) allows to compile against ncurses and termcap. The termcap version is broken in more.c. Signed-off-by: Karel Zak commit 65093299dc4a4a2fa6458eb8ad7f6ed3b9fe22c1 Author: Karel Zak Date: Mon Jun 4 12:58:39 2007 +0200 sys-utils: add note about obsolete ramsize option to rdev.8 The 2.0.x kernels and newer dynamically allocate the ramdisk and do not need this setting. Signed-off-by: Karel Zak commit 5dbff4c0eb7c326e21891b6ce4f123ba96511f87 Author: Karel Zak Date: Thu May 31 14:31:51 2007 +0200 fdisk: add GPT detection code The GPT (GUID Partition Table) is unsupported by fdisk, sfdisk and cfdisk. Unfortunately, the fdisk doesn't complain about GPT.. that's dangerous, because user is able to blindly edit PT with unexpected results. Signed-off-by: Karel Zak commit 45d1bbe9cbb39139b5cdf193e75e8d8c094e02e3 Author: Karel Zak Date: Wed May 30 20:55:02 2007 +0200 fdisk: Makefile.am refactoring Signed-off-by: Karel Zak commit 121dba8508d67a17623329d4be5f8522757cca79 Author: Karel Zak Date: Wed May 30 17:57:30 2007 +0200 fdisk: cleanup full disk detection code The full disk (e.g. /dev/hda) detection code is duplicated on two places and the code doesn't work correctly with devices which don't support HDIO_GETGEO. Signed-off-by: Karel Zak commit bf8df99191b726332b5c2f361cac27fe2fa85df8 Author: Karel Zak Date: Wed May 30 17:41:14 2007 +0200 fdisk: fix "type qualifiers ignored on function return type" Signed-off-by: Karel Zak commit be97c5f361eafdcbfe844b0d9ebb93ad893be1e3 Author: Karel Zak Date: Wed May 30 17:10:43 2007 +0200 fdisk: use unsigned long long instead int for sectors The patch is originally based on an old Suse patch. Signed-off-by: Karel Zak commit c1e0a256184209e7c758321617ec8072d14d0a35 Author: Karel Zak Date: Wed May 30 12:10:07 2007 +0200 mount: clean up info about NFS in mount.8 Signed-off-by: Karel Zak commit 6a6c1eb16cc7b136be982cfdaa6f79f45ba1cd9d Author: Karel Zak Date: Wed May 30 11:44:50 2007 +0200 mount: add note about fcntl/ioctl unreliability on NFS to mount.8 Signed-off-by: Karel Zak commit 38362fd23877e2845ac50bbb30e7970bcf7d309a Author: Karel Zak Date: Wed May 30 11:42:55 2007 +0200 mount: add note about /etc/mtab unreliability to mount.8 Signed-off-by: Karel Zak commit 1ea295bde5198c3be4abfb0bacddb4beb8cbf916 Author: Karel Zak Date: Tue May 29 01:30:50 2007 +0200 tests: add mount by uuid with label in fstab Signed-off-by: Karel Zak commit f82448f83c99ea8c567510f8b1edad185ab2181b Author: Karel Zak Date: Tue May 29 01:29:25 2007 +0200 tests: add mount by uuid with devname in fstab Signed-off-by: Karel Zak commit 6670cf68155070d712397a96555d1f5c6b1ceb02 Author: Karel Zak Date: Tue May 29 01:28:06 2007 +0200 tests: add mount by label with uuid in fstab Signed-off-by: Karel Zak commit 47dd1e4471a7ed7d2337d506011a7f59d23f9798 Author: Karel Zak Date: Tue May 29 01:26:17 2007 +0200 tests: add mount by label with devname in fstab Signed-off-by: Karel Zak commit 1a7dcc4f80f49e73884b6651242550b7a055eded Author: Karel Zak Date: Tue May 29 01:08:04 2007 +0200 tests: add mount by devname with uuid in fstab Signed-off-by: Karel Zak commit 8d946e7d2783603a30644e2a5b41d381d3d6ebf6 Author: Karel Zak Date: Tue May 29 01:07:28 2007 +0200 tests: add mount by devname with label in fstab Signed-off-by: Karel Zak commit e38e975265cd4a8eab8126164ee306c7fe93eda7 Author: Karel Zak Date: Mon May 28 15:15:55 2007 +0200 tests: add more variants to {mount,fstab}-by-{label,uuid,devname} Signed-off-by: Karel Zak commit 3af76c0b01ad9ef5dbd6e56cf3a744cf8db3d8ea Author: Karel Zak Date: Mon May 28 14:48:23 2007 +0200 mount: add support for mixed usage of SPECes This patch improves a way how the mount works with SPECes (devname, LABEL or UUID) and nodes (mountpoints) from command line. The patch adds support for mixed usage of SPECes -- it means on command line is different SPEC than in the /etc/fstab file. For example: command line: mount LABEL=foo fstab: UID=915b048a-998d-4ee5-9e6b-7fcaaf34d3c5 /mnt/foo auto default The mount command doesn't strictly require same SPEC on command line and in fstab anymore. You can be more creative and mix UUID, LABEL or device name. This implementation is more effective that convert *all* entries from /etc/fstab to a real devnames. Signed-off-by: Karel Zak commit c20767edf408882e06abc0eb3b75e4dd41581d6f Author: Karel Zak Date: Mon May 28 13:20:27 2007 +0200 mount: getfs_* (fstab) interface has to work with canonicalize() The getfs_by_dir() and getfs_by_devname() have to be able to work with canonicalized and also with non-canonicalized paths. Signed-off-by: Karel Zak commit 66822df31ae3ddceb72fe269618338aadf3eca6f Author: Karel Zak Date: Fri May 25 14:53:22 2007 +0200 tests: cleanup blkid cache after test device deinitialization The libblkid reuses cached information when a cache entry is younger than 2 secs. That's wrong, because util-linux tests use devices more quickly. Signed-off-by: Karel Zak commit 10e7d5c15fa8e8618bdc117d498276e78d9a570d Author: Karel Zak Date: Fri May 25 13:33:22 2007 +0200 mount: use verbose mode instead debug mode The patch: commit 61d9d2ff1cb0e28e2b88099bbc5b919fa5004fce Date: Wed Dec 27 23:35:56 2006 +0100 added debug mode to the mount command. It was mistake. It's better to use old verbose mode instead a new debug mode. This patch transform all staff from debug mode to to verbose mode. Signed-off-by: Karel Zak commit bcea2252572bfecd002500cc8d0e2f3fd807ebdd Author: Karel Zak Date: Fri May 25 12:28:49 2007 +0200 mount: parse SPEC before search in fstab The mount blindly uses a SPEC from command line and tries to found the SPEC in /etc/fstab. It's better to parse the SPEC and search by UUID, LABEL or devname only. Signed-off-by: Karel Zak commit 8c61f43a4c2a17ee6ebf830bb5869569305f1eaa Author: Karel Zak Date: Fri May 25 11:09:44 2007 +0200 mount: clean up getfs* (fstab.c) interface Signed-off-by: Karel Zak commit baae33d0b3111e4f8fe3af0a4923049f346450a4 Author: Karel Zak Date: Wed May 23 00:04:24 2007 +0200 build-sys: minor fixes in configure.in Signed-off-by: Karel Zak commit ad518de6687f8f5fdeac4d444018c769749091cc Author: Stepan Kasal Date: Tue May 22 13:00:23 2007 +0200 build-sys: factor out common parts from mount/Makefile.am Signed-off-by: Stepan Kasal Signed-off-by: Karel Zak commit 66ac2d17032af4a39df76b23aa00a3766220a587 Author: Karel Zak Date: Tue May 22 22:00:01 2007 +0200 tests: add mount by devname from fstab Signed-off-by: Karel Zak commit 83ee8e469a54520b94f86bb0f33e9748d6f3bad3 Author: Karel Zak Date: Tue May 22 21:44:14 2007 +0200 tests: add mount by UUID from fstab test Signed-off-by: Karel Zak commit 5715bd9e6ae5cf421cfc3598f559baeee5e56266 Author: Karel Zak Date: Tue May 22 16:06:24 2007 +0200 tests: add mount by label from fstab test Signed-off-by: Karel Zak commit c98825acab98e9154881025fdd35e6445b85f27e Author: Karel Zak Date: Tue May 22 16:01:55 2007 +0200 tests: add support for fstab modification The patch adds ts_fstab_add and ts_fstab_clean routines. Signed-off-by: Karel Zak commit 16f2ab05ece673a82645580ce55f163854800b94 Author: Karel Zak Date: Tue May 22 11:46:32 2007 +0200 tests: add mount by devname test Signed-off-by: Karel Zak commit fcd313ee798abf9b39dd5188ddd78f6ee2c4bdd0 Author: Karel Zak Date: Mon May 21 15:00:54 2007 +0200 tests: add mount by LABEL test Signed-off-by: Karel Zak commit f2e0e85a50d01416a07deff3cf1c27ce7be4fa95 Author: Karel Zak Date: Mon May 21 14:31:51 2007 +0200 tests: fix Makefile.am (add missing tests) The patch adds missing tests to Makefile.am. Signed-off-by: Karel Zak commit d90af657b8bd500c18cca6ebb0385cdd3449078c Author: Karel Zak Date: Mon May 21 14:28:01 2007 +0200 tests: add mount by UUID test Signed-off-by: Karel Zak commit 57a917d630b18908ac0b83336b3b0692c5033f9a Author: Karel Zak Date: Fri May 18 15:34:28 2007 +0200 tests: add ts_log and --verbose support Signed-off-by: Karel Zak commit aaf2f7233c19fa6efdf9bbb4901847e1bb4dd4d6 Author: Karel Zak Date: Fri May 18 15:00:22 2007 +0200 tests: "if [...]" clean up Signed-off-by: Karel Zak commit a94eb70b6bc17d24afe096cf47a1f1f2305da08c Author: Karel Zak Date: Fri May 18 14:00:21 2007 +0200 tests: add swapon by devname test Signed-off-by: Karel Zak commit c903c4ad5a6b681cf1d5c51be77e5129eac1715a Author: Karel Zak Date: Fri May 18 13:54:43 2007 +0200 tests: add swapon by UUID test Signed-off-by: Karel Zak commit 3dfa278ea5462fceec0c6dcae7211f70eaf1fbb3 Author: Karel Zak Date: Fri May 18 13:49:15 2007 +0200 tests: simplify devices usage The patch simplifies devices usage in the tests. The patch also improves errors checking and reporting. Signed-off-by: Karel Zak commit 3f5bda012d51a2935c3f2ce909c9080e4e3217c1 Author: Karel Zak Date: Thu May 17 20:16:25 2007 +0200 tests: add functions for label, uuid and fstype detection Signed-off-by: Karel Zak commit 064b8c3842cf347cdf203f7b2d4f4b82f4eeaaa2 Author: Karel Zak Date: Wed May 16 02:07:07 2007 +0200 tests: code refactoring -- new ts_udev_loop_support function The patch moves generic and duplicated code to a new ts_udev_loop_support function. Signed-off-by: Karel Zak commit df7e52d74bb877caa2b0ea94caf056446abe1236 Author: Karel Zak Date: Wed May 16 01:38:13 2007 +0200 tests: code refactoring -- new ts_device_init function The patch moves generic loop device (de)initialization code to ts_device_init and ts_device_deinit functions. Signed-off-by: Karel Zak commit 09892fb60a33d010fc56efad8cc7b3d88dd58581 Author: Karel Zak Date: Wed May 16 00:41:14 2007 +0200 tests: code refactoring -- new ts_skip_nonroot function The patch moves "if $UID != 0" test to a new function. That's better than duplicate the code on many places. Signed-off-by: Karel Zak commit 0f3e1575554951bd8f6bf0e63a7658d3e293805b Author: Karel Zak Date: Tue May 15 12:34:39 2007 +0200 tests: fix dependence on blkid The util-linux-ng tests have to be useful with blkid and also with volume_id. Signed-off-by: Karel Zak commit c4e33ad025411157535b3eda347c20a03db47c62 Author: Karel Zak Date: Tue May 15 00:52:07 2007 +0200 mount: fsprobe: add libvolume_id support Signed-off-by: Matthias Koenig Signed-off-by: Kay Sievers Signed-off-by: Karel Zak commit 40f07ff767e50d6e3b0e778d2c35f3c1e4d94106 Author: Karel Zak Date: Wed May 9 17:35:27 2007 +0200 mount: fsprobe: add libvolume_id support to configure.ac The patch add new option --with-fsprobe= (where the is blkid or volume_id). The blkid is default. The mount cannot be compiled without a filesystem detection library. Signed-off-by: Kay Sievers Signed-off-by: Karel Zak commit d392c8ed08f472eb5d49e8b99e430265041a2a60 Author: Karel Zak Date: Tue May 15 00:22:56 2007 +0200 mount: fix has_* functions (CVE-2007-0822) The functions have to check for NULL pointer. Signed-off-by: Karel Zak commit 4b9c399bf67501183389087437313c5b08f8f776 Author: Karel Zak Date: Thu May 10 12:10:57 2007 +0200 mount: fsprobe: use blkid cache only when really necessary The blkid_get_cache() parses /etc/blkid.tab, it's better do it only when we really need to resolve a spec (label or uuid). Signed-off-by: Karel Zak commit 65a567e837338052ab0714ee5eab925d74f4a6c1 Author: Karel Zak Date: Mon May 14 14:31:28 2007 +0200 mount: fsprobe: make fsprobe_get_devname functions more generic The blkid supports NAME=value parsing, but use the library for this simple task is overkill. (The libblkid requires initialized blkid cache all time, for all calls.) This patch makes the fsprobe_get_devname_for_mounting() and fsprobe_get_devname() generic for all fsprobe implementations. Signed-off-by: Karel Zak commit 950f648f8a773359bbec7f30820c9b3159e66e1c Author: Karel Zak Date: Thu May 10 11:21:35 2007 +0200 mount: fsprobe: rename the rest of API routines to fsprobe_* Signed-off-by: Karel Zak commit 9053b8a10dbce2ec441df906c5cc4dbb4e048e46 Author: Karel Zak Date: Thu May 10 01:47:28 2007 +0200 mount: fsprobe: remove mount_guess_fstype.{c,h} Signed-off-by: Kay Sievers Signed-off-by: Karel Zak commit 3d823454c69a519965c2cc9bb53a74bf54c2683c Author: Karel Zak Date: Wed May 9 16:29:27 2007 +0200 mount: fsprobe: remove non-blkid code This patch removes old FS detection code and enables blkid code only when HAVE_BLKID is defined. Signed-off-by: Karel Zak commit 0964afe10d3c1f3856fa523fa7f164fd8ecc001d Author: Karel Zak Date: Wed May 9 15:38:16 2007 +0200 mount: fsprobe: rename files to fsprobe_* Signed-off-by: Karel Zak commit 766dd75716dbd76ad338d8863ff25ed934a4a0e3 Author: Matthias Koenig Date: Mon May 7 10:56:50 2007 +0200 disk-utils: fix libuuid usage in mkswap Fix libuuid usage in mkswap. Signed-off-by: Matthias Koenig commit 2ccebfe86e0d4b39a8f43b1b9db8dd71aff555d7 Author: Karel Zak Date: Wed May 16 13:55:02 2007 +0200 sys-utils: fix man page headers The man pages have been moved from man8 to man1, but the headers still refer to man1. Signed-off-by: Karel Zak commit 305a7dddbc0526b129db041fadcbdc1a9dcdf12d Author: Karel Zak Date: Wed May 16 13:42:07 2007 +0200 docs: refresh AUTHORS file Signed-off-by: Karel Zak commit 8ceadc24da05133dfbf2ad9ec1d520605e27f01c Author: Stepan Kasal Date: Tue May 15 21:57:10 2007 +0200 mount: kill mount_guess_rootdev It's not used. Signed-off-by: Stepan Kasal commit 240f7101229014532103518cbec939cbf873417e Author: Karel Zak Date: Wed May 16 12:56:28 2007 +0200 build-sys: add AC_GNU_SOURCE The widechar code doesn't compile correctly without _GNU_SOURCE (at least according to reports from testers. I don't see the problem on FC6.) Signed-off-by: Karel Zak commit 0f521197aecf77a3d59451f9a9eabaf0b27f1ad5 Author: Karel Zak Date: Wed May 16 11:58:22 2007 +0200 build-sys: remove -fomit-frame-pointer The -fomit-frame-pointer option makes debugging impossible on some machines. It is automatically enabled by -O optimizations. Signed-off-by: Karel Zak commit 42d2a7bacda19262b6428883207747e4e955811b Author: Stepan Kasal Date: Tue May 15 20:46:34 2007 +0200 build-sys: add Automake option dist-bzip2 We distribute .tar.bz2 along with .tar.gz . Signed-off-by: Stepan Kasal commit 1b4a3d897370d431526218c23f89375f38b3d1d0 Author: Stepan Kasal Date: Tue May 15 20:46:33 2007 +0200 build-sys: in configure.ac, change "po" -> "$srcdir/po" Signed-off-by: Stepan Kasal commit 7f97ecc9382a7c9f5dc2d514d659847c5fbb752b Author: Stepan Kasal Date: Tue May 15 20:46:31 2007 +0200 build-sys: use dist_noinst_HEADERS in include/Makefile.am It is slightly more appropriate. Signed-off-by: Stepan Kasal commit 0b9f737e0b28c96ea38af2002cf9d33fbf95c844 Author: Stepan Kasal Date: Tue May 15 20:46:30 2007 +0200 build-sys: in the clean targets use "find ... | xargs rm -f" "find ... -exec rm {}" is unnecessarily slow. Signed-off-by: Stepan Kasal commit 6fcc9505719db7e5c30f61d1cc085651e5355ebb Author: Stepan Kasal Date: Tue May 15 20:46:29 2007 +0200 build-sys: remove po/Makevars.template from EXTRA_DIST The is no point in distributing it. Signed-off-by: Stepan Kasal commit 1b38f7cc476a6697e188b80ef330967a2835cee2 Author: Stepan Kasal Date: Tue May 15 20:46:28 2007 +0200 build-sys: remove config/include-Makefile.am from EXTRA_DIST It gets distributed automaticaly. Signed-off-by: Stepan Kasal commit 81c3ab2d602b3c9af811277173efbdec9446c928 Author: Stepan Kasal Date: Tue May 15 20:46:27 2007 +0200 build-sys: do not use wildcards in EXTRA_DIST Wildcards in EXTRA_DIST break "make dist" for vpath build. But plain directory names are ok. Signed-off-by: Stepan Kasal commit 5fdb7edf654049006856c119fa46a0f4bad9fb9d Author: Stepan Kasal Date: Tue May 15 20:46:26 2007 +0200 build-sys: use dist_usrbinexec_SCRIPTS in misc-utils/Makefile.am A slightly more concise way to distribute the script "reset". Signed-off-by: Stepan Kasal commit cc46213207828d6a79dd9ec39caac1543f654ba9 Author: Stepan Kasal Date: Tue May 15 20:46:25 2007 +0200 build-sys: let configure instantiate the misc-utils/*.pl scripts The substitution of @PERL@ is most done with AC_CONFIG_FILES. Signed-off-by: Stepan Kasal commit 15a9b48cf5a8e33e0f64070ca190c6eda586f8b8 Author: Stepan Kasal Date: Tue May 15 20:46:24 2007 +0200 build-sys: --prefix defaults to /usr Use prefix=/usr as the default setting. If prefix is /usr, make bindir and sbindir default to /bin and /sbin, respectively. Signed-off-by: Stepan Kasal commit 33d7e66054742db01c90e506d853cf7a4f9e4ec0 Author: Stepan Kasal Date: Tue May 15 20:46:23 2007 +0200 build-sys: set DISTCHECK_CONFIGURE_FLAGS in top-level makefile Signed-off-by: Stepan Kasal commit 028575a474ce15efacef9bff51763c864039eaf6 Author: Stepan Kasal Date: Tue May 15 20:46:22 2007 +0200 build-sys: make the getopt example directory relative to datadir Signed-off-by: Stepan Kasal commit 5ebc954d5f9382c7a7546599ac53f275f8110c01 Author: Stepan Kasal Date: Tue May 15 20:46:21 2007 +0200 build-sys: amend .gitignore Add several built files to .gitignore files. Signed-off-by: Stepan Kasal commit b34258064dd36e6b22b0ea8bf3ad4365cc078057 Author: Stepan Kasal Date: Tue May 15 20:46:20 2007 +0200 build-sys: remove swapargs.h, move the tests to main configure.ac Do not use header swapargs.h, generated by script swap.configure; use the standard AC_DEFINE method in configure.ac. Signed-off-by: Stepan Kasal commit cf002530f8ccc35c75a64d4f53e4d1fc3a9a5bbb Author: Stepan Kasal Date: Tue May 15 20:46:19 2007 +0200 build-sys: replace AC_TRY_* by AC_*_IFELSE The AC_TRY_* macros are deprecated. Following the suggestion from autoupdate, I have replaced them by AC_*_IFELSE. Signed-off-by: Stepan Kasal commit 7fa4f112094e393d542072c1e9f1857f78bfccc4 Author: Stepan Kasal Date: Tue May 15 20:46:18 2007 +0200 build-sys: s/AC_HELP_STRING/AS_HELP_STRING/ The macro has been renamed. Signed-off-by: Stepan Kasal commit fd67be311d6bd2dac2f6ff848a17cf12af6fc9b1 Author: Stepan Kasal Date: Tue May 15 20:46:17 2007 +0200 build-sys: do not use internal Autoconf variables This is a cleanup of configure.ac removing the internal ac_cv_* variables. Signed-off-by: Stepan Kasal commit bf962c0ab5b253055bc8e7e4f48b559559be42b8 Author: Stepan Kasal Date: Tue May 15 20:46:16 2007 +0200 build-sys: merge adjacent AC_CONFIG_HEADERS and AC_CONFIG_FUNCS calls Merge adjacent calls to AC_CONFIG_HEADERS--the generated configure is then smaller. Likewise for AC_CONFIG_FUNCS. Signed-off-by: Stepan Kasal commit 1f317686715f0e1cad9404b5c5c89f1ecac5d915 Author: Stepan Kasal Date: Tue May 15 20:46:15 2007 +0200 build-sys: move -D flags to *_CPPFLAGS Preprocessor options belong to *_CPPFLAGS; add $(AM_CPPFLAGS) as we want to amend it, not override. Signed-off-by: Stepan Kasal commit 271d98e05d73269339d6dadac13bb17c0101229e Author: Stepan Kasal Date: Tue May 15 20:46:14 2007 +0200 build-sys: do not set with_foo twice It's redundant to set with_slang=$withval, and similar. (Inspect the generated configure; it contains withval=$with_slang; with_slang=$withval :-) Signed-off-by: Stepan Kasal commit 67c4ade809dc8859dbe9f3511b8968d153ac6b6f Author: Stepan Kasal Date: Tue May 15 20:46:13 2007 +0200 swapon: simplify an #if Replace two immerced #ifdef's by an #if with a compound conditional. Signed-off-by: Stepan Kasal commit d7b745465456dcecd8056d26fc7139bb26c8e03c Author: Stepan Kasal Date: Tue May 15 20:46:12 2007 +0200 build-sys: use dist_noinst_DATA to work around the bug with dist_man_MANS Automake mishandles dist_man_MANS. Using dist_noinst_DATA to work around this is more elegant than using dist-hook. Signed-off-by: Stepan Kasal commit caec351d6709852bf80bacec6fac6a55302357fe Author: Stepan Kasal Date: Tue May 15 20:46:11 2007 +0200 build-sys: simplify "clean" in tests/Makefile.am The construction with "distclean-local" does not seem necessary. Moreover, Automake complains when "clean" is redefined. Simply put the rm to "clean-local". Signed-off-by: Stepan Kasal commit 39a2c1480fc26ce5b5f8f7a593b9a4c5c8d240a4 Author: Stepan Kasal Date: Tue May 15 20:46:10 2007 +0200 build-sys: use dist_example_DATA "dist_" prefix is more elegant than EXTRA_DIST. Signed-off-by: Stepan Kasal commit 7caf9897a8e202b87046a55dfcb9245c5d6474dd Author: Stepan Kasal Date: Tue May 15 20:46:09 2007 +0200 build-sys: mount/Makefile.am tiny cleanup II Style change: init the *_LDADD vars, then amend them with +=. Signed-off-by: Stepan Kasal commit 2984313a46226c7ecd8c5db92236bfaea107a0c7 Author: Stepan Kasal Date: Tue May 15 20:46:08 2007 +0200 build-sys: do not build convenience libraries in lib/ Build lib/*.c individually for each project which uses it, so that the right set of flags is applied each time. Signed-off-by: Stepan Kasal commit 787fc0be21cd076689aa1467ee3cdc7519174a71 Author: Stepan Kasal Date: Tue May 15 20:46:07 2007 +0200 build-sys: mount/Makefile.am tiny cleanup Major part of mount_SOURCES and umount_SOURCES is the same; factor it out to a new make variable. Signed-off-by: Stepan Kasal commit 232a8ec45a4ff633414a46878e97b8dd27aa4361 Author: Stepan Kasal Date: Tue May 15 20:46:06 2007 +0200 build-sys: remove AC_PROG_RANLIB libtoolize (1.5.16) says it's now obsolete. Signed-off-by: Stepan Kasal commit 1f10890f51a68e3c5d42a02eba80ecb0ec49d20f Author: Stepan Kasal Date: Tue May 15 20:46:05 2007 +0200 build-sys: declare SUID_CFLAGS and SUID_LDFLAGS as precious Use AC_ARG_VAR to declare the variables SUID_CFLAGS and SUID_LDFLAGS as precious. Signed-off-by: Stepan Kasal commit 2c4bdb7fca252e1183679c094a699f0b05bd8c1b Author: Stepan Kasal Date: Tue May 15 20:46:04 2007 +0200 build-sys: fix the example configure call in README Adapt the example to pass the variables as arguments to the configure script, as this is the prefered way. And a few cosmetic changes to the paragraph. Signed-off-by: Stepan Kasal commit 3f3c9c909a41611ac5d2a9c151290296aa30a97f Author: Stepan Kasal Date: Tue May 15 20:46:03 2007 +0200 build-sys: add SUID_LDFLAGS Programs which are usually installed with the setuid bit do need their own CFLAGS and LDFLAGS. SUID_LDFLAGS is analogic to SUID_CFLAGS. Signed-off-by: Stepan Kasal commit 30564097bfb026c0eb877af9dbe3ec963cbd5cc5 Author: Stepan Kasal Date: Tue May 15 20:46:02 2007 +0200 build-sys: do not play with DEFS, use AM_CPPFLAGS If a -D flag is needed, it belongs to AM_CPPFLAGS. Signed-off-by: Stepan Kasal commit 8671065ce5d13d97fb3f42b6736985f591f53981 Author: Stepan Kasal Date: Tue May 15 20:46:01 2007 +0200 build-sys: move the optimization flags to AM_CFLAGS The optimization flags are not preprocessor flags. Moreover, CPPFLAGS and CFLAGS shall be overridable at make time, the configure script shall not touch them. Setting AM_CFLAGS in config/include-Makefile.am seems to be TRW. Signed-off-by: Stepan Kasal commit 8c453685a69aad1221420e710cf4d5c201ffce17 Author: Stepan Kasal Date: Tue May 15 20:46:00 2007 +0200 build-sys: do not kick off AM_CFLAGS by SUID_CFLAGS SUID_CFLAGS are not meant to override the makefile-wide AM_CFLAGS. (We do not use AM_CFLAGS currently, but we will.) Signed-off-by: Stepan Kasal commit f0b8b878c34cb7dbc8b825f3bb8009eaf2a244cd Author: Stepan Kasal Date: Tue May 15 20:45:59 2007 +0200 build-sys: update po/POTFILES.in Remove mount/nfsmount* files from po/POTFILES.in . Signed-off-by: Stepan Kasal commit 52a2b29d9bbb334056ee32487ccb436a734a3660 Author: Karel Zak Date: Thu May 10 15:18:01 2007 +0200 mount: remove nfsmount() from sundries.h Signed-off-by: Karel Zak commit 11d6b04773f9e55ebad4908d49c8404d82324e7a Author: Karel Zak Date: Wed May 9 13:25:16 2007 +0200 mount: remove all NFS code Use /sbin/{u,}mount.nfs{,4} from nfs-utils! The mount command will use these to mount nfs filesystems instead of internal code. The /sbin/{u,}mount.nfs{,4} is supported from nfs-utils-1.1.0 (currently -rc1). Signed-off-by: Karel Zak commit e1bc6da937a2c96b3e8d06e491916a9be5f21a77 Author: Stepan Kasal Date: Mon May 7 20:06:39 2007 +0200 build-sys: fix the final message of autogen.sh The message shall not recommend calling ./configure when srcdir != "." . Signed-off-by: Stepan Kasal commit 5a2300248f75608d6d289eb7042e3099e48a2eb9 Author: Stepan Kasal Date: Mon May 7 20:06:06 2007 +0200 build-sys: call automake after autoconf "automake" calls "autoconf" internally, to trace the expansion of configure.ac. So it is more natural to call "autoconf" before "automake". Signed-off-by: Stepan Kasal commit 040dc88f7010830eb038f58fd9b2cda222c8e570 Author: Stepan Kasal Date: Mon May 7 19:30:57 2007 +0200 build-sys: remove config.h.in from VCS config.h.in is generated, no need to keep it. Signed-off-by: Stepan Kasal commit 3a620ba4bffade41d81c429560c40bb65c9b81a7 Author: Karel Zak Date: Fri May 4 11:05:51 2007 +0200 mount: add support for context, fscontext and defcontext selinux mount options Signed-off-by: Karel Zak commit 6573c985a4077fa7d50ccb993bae177526fde8ec Author: Karel Zak Date: Fri May 4 09:14:04 2007 +0200 mount: use realloc for xstrconcat functions Everywhere in code is s = xstrconcat3(s, t, u); that's nonsense use malloc(new_s); free(s); return new_s; Signed-off-by: Karel Zak commit 9e28151e70ea2b4d87806a2d36f592c8ef2390e3 Author: Karel Zak Date: Thu May 3 14:16:24 2007 +0200 mount: use growable string for options The parse_opt() routine uses fixed size of string for mount options. This is useless for future selinux options where is not well defined size of selinux context name. The patch also makes code more readable and all option-string operations share same code. Signed-off-by: Karel Zak commit bb369b14044f822e36097928efe9c121a225f9cb Author: Karel Zak Date: Tue May 1 00:28:08 2007 +0200 mount: avoid duplicate entries in mtab when mount -f Signed-off-by: Karel Zak commit 8d5807b942631fc9bd7894f7a254ed4fd54cb039 Author: Karel Zak Date: Thu Apr 26 22:25:13 2007 +0200 tests: add mount -o remount test Signed-off-by: Karel Zak commit e4a89b95ad7bbd1c6c6bc3a1a2c72f5542aa99ff Author: Karel Zak Date: Thu Apr 26 15:10:00 2007 +0200 tests: add mount --move test Signed-off-by: Karel Zak commit 3d91eb781d7309752d5ad844525514ddffe44d6e Author: Karel Zak Date: Thu Apr 26 11:06:44 2007 +0200 mount: doesn't rpc_pipefs and nfsd on umount -a Signed-off-by: Karel Zak commit b2b7b73d5eb1ebb950ea88db929aa0f0973d9b40 Author: Karel Zak Date: Thu Apr 26 01:49:28 2007 +0200 mount: fix list logic in update_mtab If mtab does not contain the new entry, then only mc0->prev is updated to point to absent, but not the old mc0->prev's nxt pointer. Because we then use the nxt pointers to write the new mtab, absent is not added to the new mtab. (Note: fortunately, the mount doesn't use the update_mtab() for new mounts, but for remount, move and umount only -- kzak) If mtab is empty, absent->prev should be set to mc0, and not mc0->prev, as it will be NULL. Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer Signed-off-by: Karel Zak commit 1510285d494fc8937036027303fcd3305e7873fb Author: Mike Frysinger Date: Fri Apr 13 07:54:38 2007 -0400 mount: fix memory usage in update_mtab The update_mtab deallocates memory which was allocated by caller. It's nice opportunity for double-free errors. The patch fix a memory leak if we have to abort before mc0 are freed. The patch also fix a memory leak when we deallocate old (umounted) entry. Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer Signed-off-by: Karel Zak commit 3cccadb2f7a842d3296cf5949892177b45946a72 Author: Mike Frysinger Date: Fri Apr 13 07:19:39 2007 -0400 mount: do not treat arm/sparc specially. Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer commit 6b4d210d04492f926c5c21cfc609fb796c1b33f8 Author: Mike Frysinger Date: Fri Apr 13 07:15:44 2007 -0400 mount: don't umount sysfs when running umount -a Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer commit 409af84fbac868331232ee9659371604f68113e9 Author: Mike Frysinger Date: Fri Apr 13 07:11:44 2007 -0400 po: typo in french translation of mount error. Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer commit 5f24e30701548a7d06dbf9b7656feae14af24b2f Author: Mike Frysinger Date: Fri Apr 13 06:58:18 2007 -0400 mount: fix -fv so that it doesn't incorrectly spit out an error that nothing was done. Signed-off-by: Mike Frysinger Signed-off-by: Martin Schlemmer commit 2a4b57250050f0f4876b432deddd6b1f876e5bd2 Author: Karel Zak Date: Wed Apr 25 23:50:52 2007 +0200 sys-utils: move some man pages from category 8 to 1 The dmesg, ipcrm, ipcs, renice and setsid are user-accessible commands and belong in man1 more than to man8. Signed-off-by: Karel Zak commit 96f92b00b4608ebabc25234098cc9a0cd4e34cc3 Author: Karel Zak Date: Wed Apr 25 15:23:21 2007 +0200 docs: fix info about devel/master branchs Signed-off-by: Karel Zak commit 9ec6a6b4ad4c8677d74ea1bc4903d9269fce63ab Author: Karel Zak Date: Wed Apr 25 00:40:28 2007 +0200 docs: remove deprecated section from README The deprecated stuff is already described in the DEPRECATED file. Signed-off-by: Karel Zak commit 06bcee19a248efe225d744a09a44638c07685bef Author: Karel Zak Date: Tue Apr 24 11:44:19 2007 +0200 build-sys: add SUID_CFLAGS The patch allows to define special CFLAGS for typical suid programs (like mount, umount, chfn, ...). Some distributions use for example "-fpic" for suid binaries. Signed-off-by: Karel Zak commit dd9f213ab6efd352f67bc18071c16239d1002b94 Author: Karel Zak Date: Thu Apr 12 14:35:46 2007 +0200 mount: add support for mtab "uhelper" option The helper is an external /sbin/umount. program where the suffix is a value from the uhelper= option from /etc/mtab. The uhelper (unprivileged umount helper) is possible to used when non-root user wants to umount a mountpoint which is not defined in the /etc/fstab file (e.g devices mounted by HAL). This option is already supported by HAL upstream. Signed-off-by: Karel Zak commit 0b44c6155b8430fdf832fabc42d3f4b8dfa9f072 Author: Karel Zak Date: Thu Apr 12 13:27:41 2007 +0200 mount: update mtab correctly when mount --move Signed-off-by: Karel Zak commit 09dd84cac7fbc4886fdb92593898ea713f663dfd Author: Karel Zak Date: Wed Apr 11 23:18:08 2007 +0200 schedutils: define SCHED_BATCH when compile with old glibc This is temporary workaround and it will be removed in 2.14 when minimal number of people will use old systems where is not defined SCHED_BATCH in (bits/)sched.h. Signed-off-by: Karel Zak commit f2c166ffdba2d4c63d2ee9a14bedff083e444aad Author: Mike Frysinger Date: Tue Apr 10 10:54:22 2007 -0400 check exit status of autotools Make sure each autotool run in autogen.sh worked and if not, abort. Signed-off-by: Mike Frysinger commit c67f99d754246e81d06521c2805bccde1f84be13 Author: Karel Zak Date: Fri Apr 6 12:31:40 2007 +0200 todo: add request for cal highlight control option Signed-off-by: Karel Zak commit 31cc369d60ffb640dcf1ab3e86a22c48e82c02da Author: Karel Zak Date: Fri Apr 6 12:17:43 2007 +0200 todo: add entry about replay Signed-off-by: Karel Zak commit e9998b33cc507e46dbb35458715ca1be27575cd8 Author: Karel Zak Date: Wed Apr 4 13:09:34 2007 +0200 tests: refresh mtablock output in expected/ directory Signed-off-by: Karel Zak commit 5e12b670afa4bfe2b9433d42783628bcdf61dffc Author: Valerie Henson Date: Fri Dec 8 19:15:14 2006 -0800 mount: relative atime support Add the "relatime" (relative atime) option support to mount. Relative atime only updates the atime if the previous atime is older than the mtime or ctime. Like noatime, but useful for applications like mutt that need to know when a file has been read since it was last modified. Cc: Adrian Bunk Cc: Al Viro Cc: Karel Zak Signed-off-by: Valerie Henson commit 0df2f5d5aa1b3c5bd3acb544535ec129d2405fc4 Author: Matthias Koenig Date: Tue Apr 3 16:06:55 2007 +0200 tests: add missing header minor patch, which adds a missing string.h header to mnt_test_sysinfo.c Signed-Off-By: Matthias Koenig commit 30ced4e60b09e8fe44d21687df5a735001a05a69 Author: Matthias Koenig Date: Tue Apr 3 16:04:15 2007 +0200 misc-utils: add scriptreplay manpage a really minor patch which adds the manpage for scriptreplay. Signed-Off-By: Matthias Koenig commit 389fbea536e4308d9475fa2a89e53e188ce8a0e3 Author: Karel Zak Date: Tue Apr 3 22:54:47 2007 +0200 mount: shared-subtree support This patch builds shared-subtree semantics awareness into the mount command. Updates the man page for mount too. The patch also fix a conflict between MS_COMMENT and MS_UNBINDABLE (-- kzak). Signed-off-by: Karel Zak Signed-off-by: Ram Pai commit 939a997de0c761d29fb7530976ca20da4898703a Author: Karel Zak Date: Tue Apr 3 22:19:28 2007 +0200 tests: enable mtablock test when uid=0 only Signed-off-by: Karel Zak commit 72a71454969c1fdde8f1a39568bbb96b200d5747 Author: Karel Zak Date: Tue Apr 3 22:02:20 2007 +0200 docs: add the DEPRECATED file Signed-off-by: Karel Zak commit 72ab6bb4b93b1c8427d9bdebb695db9494d4bc2e Author: Karel Zak Date: Tue Apr 3 21:56:55 2007 +0200 losetup: add to man page info about deprecated cryptoloop Signed-off-by: Karel Zak commit dc8fdc57cd3ba0658cf4ab05031695c2d2965f93 Author: Karel Zak Date: Fri Mar 30 13:10:59 2007 +0200 mount: fix mtab_lock * the lock function uses F_SETLK / F_SETLKW as a conditional wait. It's more reliable and better for performance to close the MOUNTED_LOCK file in unlock_mtab(), otherwise concurrent process will be wait by while () { link() } loop instead on fcntl(F_SETLKW). Thanks to Jeff Moyer who found the problem two year ago. * when open(MOUNTED_LOCK) failed, we need to try everything again, but the original code didn't zeroize "we_created_lockfile" and the old version in particular case left lock_mtab() without locked /etc/mtab. This is nasty bug. * the original locking code had bad performance due too long sleep (1s), between attempts. Now we're more aggressive and we use 5000ms. The result is that more processes is able to lock mtab in short time slice. Thanks to Peter Rockai who found the problem and suggest a first version of the code with usleep. * now we don't count number of attempts anymore, but we count sum of time which we spend in the mtab_lock(). The number of attempts is not important (and it also depends on CPU performance, load, scheduler, ...), the important thing is how long we spend with locking. Now time limit is 30s. Signed-off-by: Karel Zak commit 2cd72ac0e054bb070cad880d0cc9366ebf08b3eb Author: Karel Zak Date: Wed Mar 28 18:43:03 2007 +0200 tests: add lock_mtab() performance and reliability test The test starts concurrently many processes that use lock_mtab() as lock for access to same file. Signed-off-by: Karel Zak commit 61b2affd6e131779d396e23212bd690b27556a82 Author: Karel Zak Date: Wed Mar 28 17:01:19 2007 +0200 tests: make clean need to remove diffs and outputs Signed-off-by: Karel Zak commit faf142b65a685a43a51132bd24924163aa0c1a95 Author: Karel Zak Date: Thu Mar 22 20:54:07 2007 +0100 losetup: add support read-only loops This feature has been already supported by mount, but it wasn't accessible by losetup command. Now you can use "losetup -r". Signed-off-by: Karel Zak commit 8b125fae1c94fd9200c86c2d7754f0d86b8b6f17 Author: Karel Zak Date: Thu Mar 22 14:22:10 2007 +0100 losetup: add -a option to list all used loop devices Signed-off-by: Karel Zak commit 460e061dd93e9f4df45ee50f0ddd3cc2d38a8255 Author: Karel Zak Date: Thu Mar 22 12:51:47 2007 +0100 mount: add -s and -f and note to man page for external mount helpers The mount -s (for nfs only) and -f options must be exported to external /sbin/mount. helpers. Signed-off-by: Karel Zak commit 2ac07cbb66bcefe6331fafaaf442235e12b182bd Author: Karel Zak Date: Thu Mar 22 01:56:54 2007 +0100 mount: call /sbin/mount. also when mounting without "-t" The mount uses /sbin/mount. when the type is *defined* on command line or in fstab only. It's not a consistent solution, because we also support fylesystem type autodetection. The patch allows to mount OCFS2 by label for example. Signed-off-by: Karel Zak commit ce11301210c9dadfb86cdbfd04a4aec07c5c10a2 Author: Karel Zak Date: Thu Mar 22 01:28:44 2007 +0100 tests: add test for /sbin/mount. call Signed-off-by: Karel Zak commit 66a9411eb0dec245b0dd781837442586521b5550 Author: Karel Zak Date: Wed Mar 21 23:07:25 2007 +0100 newgrp: add support for /etc/gshadow The original newgrp command doesn't expect group pasword in /etc/gshadow although almost all distributions use this file (and the gpasswd command). The newgrp from util-linux is deprecated and better is use shadow-utils only. Unfortunately, shadow-utils are broken too (see RH version where is bugfix). In this case it's better fix util-linux version at least... Signed-off-by: Karel Zak commit ac70067ae67d22b5c8305eac87acec5cdf8059e3 Author: Karel Zak Date: Wed Mar 21 17:29:20 2007 +0100 newgrp: check result from getgrnam() more carefully Signed-off-by: Karel Zak commit 72bcf1898b3fb6ebb11f65a9b5b1980eafbc9c21 Author: Karel Zak Date: Wed Mar 21 16:21:34 2007 +0100 hwclock: make ggc happy and check return values from fgets, read and write Signed-off-by: Karel Zak commit 9abb26854c5f185683ba7bd812bb5076cedc8f0e Author: Karel Zak Date: Wed Mar 21 15:05:58 2007 +0100 hwclock: remove tailing white-spaces and clean up clock.h Signed-off-by: Karel Zak commit 88058a71e27a5b4ded2879b774aaf1c1a15944ca Author: Karel Zak Date: Wed Mar 21 14:12:05 2007 +0100 hwclock: add support for audit system If you compile --with-audit the hwclock tool reports changes in sys/hw clock to audit system. The real long-term and final solution is probably add hooks for /dev/rtc to kernel, but it's not implemented yet. Signed-off-by: Steve Grubb Signed-off-by: Karel Zak commit 99c392d8ba163e35b9d562dd4bcf7dd476ad3573 Author: Karel Zak Date: Tue Mar 20 00:32:37 2007 +0100 hwclock: fix --systohc sets clock 0.5 seconds slow quote from rh150493: The kernel code, when setting the BIOS clock notes that the clock time ticks to the next second 0.5 seconds after adjusting it (see linux/arch/i386/kernel/time.c). hwclock --systohc sets the CMOS clock at the 1 second boundry and thus causes the clock to be wrong by 500ms each time it is reset. If the clock is set every shutdown then the clock will have a reboot-count related drift as well as the natural drift problems of the clock. Note that this also mucks up the drift calculations, of course. Signed-off-by: Karel Zak commit 51bc94930b9986571a359a3501ad5926de2b4847 Author: Karel Zak Date: Tue Mar 20 00:08:49 2007 +0100 tests: add hwclock systohc test The test detects how "hwclock --systohc" untune the clock. Now the hwclock command causes the hw clock to be wrong by 500ms each time it is reset. The test resets the clock 10 times and result is 5 sec difference between NTP and the clock. That's a bug... and it has to bee fixed in a next commit. Signed-off-by: Karel Zak commit 05de8126346e395331f68230d3cb7c2106bb25d0 Author: Karel Zak Date: Mon Mar 19 23:27:40 2007 +0100 tests: add ts_ok and ts_failed Signed-off-by: Karel Zak commit 88681c5f1afe724ca914a7202225e6e640d37222 Author: Karel Zak Date: Mon Mar 19 10:14:13 2007 +0100 hwclock: add --rtc= option and support for /dev/rtc0 The patch to allow "hwclock --rtc /dev/rtc1" and so on, since "/dev/rtc" may not be there and "/dev/rtc0" may not be the right answer either. The "--rtc" is compatible with next Bryan Henderson's hwclock versions. Signed-off-by: David Brownell Signed-off-by: Karel Zak commit de55796274c3cd39791567a79d35fd0d8b3ac383 Author: Karel Zak Date: Wed Mar 14 14:16:45 2007 +0100 docs: fix URL and typos in README.devel Signed-off-by: Karel Zak commit 82640b11ba9fbb36e8d39c2a05671ef5f8011b68 Author: Karel Zak Date: Wed Mar 14 14:10:18 2007 +0100 tests: add library for LD_PRELOAD to manipulate with time() in tests The cal command generates output that depends on time(). For reliable regression tests we need to use still same time. It seems that LD_PRELOAD is pretty simple way. Signed-off-by: Karel Zak commit 0e9f3267a719e9f96404fed9562faeab8f97ad62 Author: Karel Zak Date: Wed Mar 14 12:51:49 2007 +0100 build-sys: remove aclocal.m4 from SCM The aclocal.m4 is also generated by autogen.sh Signed-off-by: Karel Zak commit e09947b58b4356c7adb07bcb4b6735f3bf6236ec Author: Karel Zak Date: Mon Mar 12 14:31:11 2007 +0100 login: remove triiling white-spaces Signed-off-by: Karel Zak commit f8bdba2fd24a176d8d0ef8c96fb184fa3cd0f7bf Author: Karel Zak Date: Mon Mar 12 14:26:34 2007 +0100 login: add audit support The login command reports AUDIT_USER_LOGIN message to audit system (depends on --with-audit). Signed-off-by: Karel Zak commit bbae9cb03e90eb7d10e0bd6a6e3a6d21486c153f Author: Karel Zak Date: Mon Mar 12 12:20:54 2007 +0100 build-sys: add support for audit You can compile --with-audit now. Signed-off-by: Karel Zak commit ea6c190a661170d905ca63e5deae9f0a399f039e Author: Karel Zak Date: Sat Mar 10 01:28:10 2007 +0100 login: add IPv6 support This support includes: * non-PAM version supports IPv6 ranges in /etc/usertty * utmp records with IPv6 addresses Based on patch by: Milan Zazrivec Signed-off-by: Karel Zak commit 71562c1fddf8d025b5de94d1df3b89278fc679b2 Author: Karel Zak Date: Fri Mar 9 14:56:18 2007 +0100 login: add regression test for IP address checking code The hnmatch() in checktty.c is checking IP addresses if the login util is compiled without PAM support. Signed-off-by: Karel Zak commit 75d4dbb0d7d7937f0f5f464c3bd803d4191a6c0e Author: Karel Zak Date: Thu Mar 8 23:22:06 2007 +0100 login: update 32bit utmp correctly on 64bit system On 64-bit platforms such as x86_64, glibc is usually built with 32-bit compatibility for various structures. One of them is utmp. What this means is that gettimeofday(&ut.ut_tv, NULL) on x86_64 will end up overwriting the first parts of ut_addr_v6, leading to garbage in the utmp file. Signed-off-by: Karel Zak commit 987195ce415a45d0ea98955019634bf2f179ffb1 Author: Karel Zak Date: Thu Mar 8 22:42:50 2007 +0100 login: omits PAM account validation when auth is skipped (CVE-2006-7108) The login omits pam_acct_mgmt & chauth_tok when authentication is skipped. Authentication may be skipped, for example, during krlogin because Kerberos already took care of it. The problem with skipping pam_acct_mgmt is that it allows users to use the system when maybe they should not be allowed, such that if they have a Kerberos ticket, the other checks do not apply. If a user had to use password authentication, pam_acct_mgmt may reject the user for several reasons: not allowed to use the system at this time, not allowed to use this system, user's account has been disabled, etc. Why should these tests be skipped just because the user has a ticket? Same with pam_chauthtok: the user may have a valid ticket, but if their password has expired, they need to enter a new one right now. Signed-off-by: Karel Zak commit 62eabbf4a9536882fff9dad24f287ea709219f0f Author: Karel Zak Date: Thu Mar 8 22:35:38 2007 +0100 login: attempt to run if it has no read/write access to its terminal If you manage to exec login with a userid other than root, and its input / output directed to a terminal for which it does not have read/write access, it will attempt to proceed (and can potentially hang forever -- but this hang has been fixed in a previous commit). It's better to check if we have permissions for terminal rather than do any useless things. From: Jason Vas Dias Signed-off-by: Karel Zak commit 172742336863b2b7bd37aab43ac9a8054d6edfdf Author: Karel Zak Date: Thu Mar 8 22:27:17 2007 +0100 login: keep syslog useful for end of PAM session. The PAM session modules typically write to syslog when leaving the session. The openlog() is way how define a "ident" for syslog messages. Signed-off-by: Karel Zak commit 649efbb369506a2096811186015b33a80cf15b94 Author: Karel Zak Date: Thu Mar 8 22:21:15 2007 +0100 login: login's timeout can fail Login tries to set a timeout in main() by SIGALARM. If any restartable system call is entered, such system calls can block indefinitely and will NOT be interrupted by the SIGALRM. The bug appears when the login program is run for a terminal for which it doens't have read or write permission. In that case, login hung until manually killed by the administrator in its tcsetattr(...) call at login.c, line 460: /* Kill processes left on this tty */ tcsetattr(0,TCSAFLUSH,&ttt); This may possibly be a kernel bug - instead of returning EIO / EPERM, the kernel continously sends an infinite number of SIGTTOU signals to the process . An 80MB strace log file was generated, consisting of >1,000,000 repetitions of : 4964 11:00:18 ioctl(0, SNDCTL_TMR_CONTINUE or TCSETSF, {c_iflags=0x106, c_oflags=0x1805, c_cflags=0x800000be, c_lflags=0x3b, c_line=0, c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x00\x12\x0f\x17\x16\x00\x00\x00"}) = ? ERESTARTSYS (To be restarted) 4964 11:00:18 --- SIGTTOU (Stopped (tty output)) @ 0 (0) --- 4964 11:00:18 --- SIGTTOU (Stopped (tty output)) @ 0 (0) --- Login's alarm signal handler DOES get the SIGALRM after the 60 second timeout, and timedout() is called; but then timedout2 calls ioctl(0, TCSETA, &ti), which also blocks, because the ioctl(0, TCSETSF...) of tcsetattr is in progress, and the exit() call of timedout2 is never reached, and the tcsetattr call is restarted. From: Jason Vas Dias Signed-off-by: Karel Zak commit b2452358860526b454ba5f6c71183300223e0e78 Author: Karel Zak Date: Thu Mar 8 21:57:48 2007 +0100 login: improve work with signals The login cannot ignore signals, because: * SIGHUP is only way how inform session leader that controlling tty goes away. The leader has to inform others processes in same process group about the signal. * SIGHUP/SIGTERM cannot kill wait(2)-ing login, we have to wait as long as any child process exists. The PAM session has to be closed correctly. * The child process (before setsid()) has to call exit() if a controlling tty goes away. This patch is inspired by patch from Red Hat that is very well tested for last 4 years in all Red Hat distros. Signed-off-by: Karel Zak commit 1c51a3683a1e1ae589e1ec294f1153f4f567f899 Author: Karel Zak Date: Wed Mar 7 01:03:28 2007 +0100 todo: add item about ipcs Signed-off-by: Karel Zak commit f2c7ae1ddd5973c578d73ec929f29205e84aa47a Author: Karel Zak Date: Tue Mar 6 15:08:58 2007 +0100 login: close PAM session after failed pam_setcred If for some reason the pam set credential call fails, it does not close the pam session. pam open can mount drives, so calling pam close is important. From: Steve Grubb Signed-off-by: Karel Zak commit 7ab59baf58c317662afaa3ae83537ccd4c4aea65 Author: Karel Zak Date: Tue Mar 6 13:45:59 2007 +0100 chsh: remove tailing wihit-spaces and use PATH_BSHELL Signed-off-by: Karel Zak commit 429ee99745c92cc283472db5efa1c7162f43c2cc Author: Karel Zak Date: Wed Mar 7 09:53:56 2007 +0100 look: remove tailing white-spaces Signed-off-by: Karel Zak commit dab737cc42a844e439b58562804f4ce60689c792 Author: Karel Zak Date: Tue Mar 6 13:14:52 2007 +0100 look: fix problem with !isalnum() words for example "$ look apple-pie" Signed-off-by: Karel Zak commit a17bead499741b5a3844f0d7a9bc82ad1788ba99 Author: Karel Zak Date: Tue Mar 6 13:04:25 2007 +0100 tests: add look test for words with separator $ look apple-pie Signed-off-by: Karel Zak commit 8b0f4ae981950c641f5ff23bcf2a4ed47e8c1f5f Author: Karel Zak Date: Tue Mar 6 12:03:19 2007 +0100 po: vipw doesn't use rpmatch, all translations have to use y/n Signed-off-by: Karel Zak commit 1bf100f33b39f7de0ccb0e26270e985a6a9f8f27 Author: Karel Zak Date: Tue Mar 6 11:54:39 2007 +0100 cfdisk: build-sys defines HAVE_RPMATCH, not HAVE_rpmatch Signed-off-by: Karel Zak commit 2bfcd20b8d78ee9191cbfc4ea420f44ecdfb25cd Author: Karel Zak Date: Tue Feb 27 16:49:25 2007 +0100 mkfs.cramfs: fix a way how mkfs works with empty files Signed-off-by: Karel Zak commit 40b115acc5f5bacd59436ebd9ea4ab8b785e9700 Author: Karel Zak Date: Tue Feb 27 16:38:27 2007 +0100 tests: add expected outputs for cramfs The patch aslo reduce number of files and dirs in mkfs.cramfs tests. Signed-off-by: Karel Zak commit 3e52b13e91a8d4935af17974a59843bb7ea854b9 Author: Karel Zak Date: Tue Feb 27 16:31:21 2007 +0100 mkfs.cramfs: remove hardcoded limit for directories Signed-off-by: Karel Zak commit 86ec1b63f90bcf534292f3ddd9da9749c00d84ba Author: Karel Zak Date: Tue Feb 27 15:59:04 2007 +0100 tests: add mkfs.cramfs tests This test shows that actual mkfs.cramfs is ugly due MAXENTRIES (100) limit. Signed-off-by: Karel Zak commit 31ffd207d207818e3e7e7060fdd51971752a3007 Author: Karel Zak Date: Thu Feb 15 11:46:23 2007 +0100 vipw: fix permissions (600->400) for edited /etc/[g]shodow files Signed-off-by: Karel Zak commit 2f2d6528e3af6d9722e44727064a7a86b42b9168 Author: Karel Zak Date: Fri Feb 9 19:15:23 2007 +0100 partx: add man pages for addpart, delpart and partx Signed-off-by: Karel Zak commit 4717ea4a97af59fca6a88a84e10add5d9539a473 Author: Karel Zak Date: Fri Feb 9 17:35:15 2007 +0100 clean up realpath.[ch] includes and macros Signed-off-by: Karel Zak commit 167eaed7836b456b7bedf38be4124a8fa27ccb69 Author: Karel Zak Date: Fri Feb 9 17:15:39 2007 +0100 swapon: does not correctly deal with symlinks From: Marco d'Itri Signed-off-by: Karel Zak commit 3e18b040af55bd6fcd06dc0008f7a4e00f6fc123 Author: Karel Zak Date: Thu Feb 8 15:22:37 2007 +0100 mkswap: automatically add selinux label to swapfile Signed-off-by: Karel Zak commit deef0ba55e45e275e4f23bdf93fcd24c0750d8ae Author: Karel Zak Date: Thu Feb 8 15:19:36 2007 +0100 build-sys: configure.am selinux support cleanup Changes: - don't include SELinux as default (--with-selinux is required) - the SELinux is not useful for login-utils only - clean up PAM and login-utils tests in the configure.am Signed-off-by: Karel Zak commit b8d1314dc6ceeb998632102d5f93cda5e2548f8d Author: Karel Zak Date: Thu Feb 8 12:38:25 2007 +0100 build-sys: fix README filenames and add missing files to EXTRA_DISTs Also, the patch makes "make mrproper" more robust. Signed-off-by: Karel Zak commit 061999ee0d9bde9e79f4735283dfd1382313bccf Author: Karel Zak Date: Wed Feb 7 13:26:11 2007 +0100 mkswap: add regression test Signed-off-by: Karel Zak commit 85ffb958a9c609b4c54e558320d39a2a4499a9e1 Author: Karel Zak Date: Wed Feb 7 10:32:34 2007 +0100 todo: add item about exit() codes Signed-off-by: Karel Zak commit 8abb4c2e002c0dba05a011a0c17b5582a54d3a71 Author: Karel Zak Date: Wed Feb 7 10:32:02 2007 +0100 mkswap: avoid mkswap usage on already mounted device Signed-off-by: Karel Zak commit f93a4afd47d331e63da9582aad83ffc3db15fa70 Author: Karel Zak Date: Wed Feb 7 10:11:07 2007 +0100 todo: add this file Signed-off-by: Karel Zak commit 6b9a290adf1680ff7a4a74bc78fe6ac9931667cc Author: Karel Zak Date: Wed Feb 7 10:10:22 2007 +0100 mkswap: gcc happy: unsigned long usage Signed-off-by: Karel Zak commit 7ac3b5b8e3ec944e7cd3bcc6d992882c4d443414 Author: Karel Zak Date: Tue Feb 6 11:35:15 2007 +0100 Clean up pagesize/PAGE_SIZE usage. Now all code in util-linux uses sysconf(_SC_PAGESIZE) that is standardized and preferred way of querying page size. The asm/page.h file is not included to the code anymore. (This patch doesn't change mount's FS detection code which will be removed later). Signed-off-by: Karel Zak commit ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8 Author: Karel Zak Date: Tue Feb 6 11:33:35 2007 +0100 tests: fix argv[] usage in mnt_test_sysinfo.c Signed-off-by: Karel Zak commit 5db4f8e3b381accb46f31dec5767241782953fa2 Author: Karel Zak Date: Wed Jan 31 16:45:01 2007 +0100 namei: new regression test Signed-off-by: Karel Zak commit d8ef4c19ab6ebe29b1deb5d5445cba6d76192a4f Author: Karel Zak Date: Wed Jan 31 16:43:18 2007 +0100 namei: fix logic and infinite loop of symlinks Don't follow the path if a component is not directory. It doesn't make sense to support something like: $ touch a b $ namei a/b <-- where "a" is not directory The support for infinite loop of symbolic links is a strange wish only. The stack size is very limited. Try: $ ln -s x $ namei x/x [Migration note: severity="low"] Signed-off-by: Karel Zak commit e9ce5ccc90c63cb1c499ad01800e638ece23f8b0 Author: Karel Zak Date: Tue Jan 30 13:18:51 2007 +0100 col: getwchar() errors shouldn't be hidden The col truncates output when multibyte errors is detected, but the problem is not reported to stderr and return code is still same like for successful exit. This stupid behaviour is fixed by this patch. Signed-off-by: Karel Zak commit 06b04b23cdff2f038e4f341a1247c51b5261f332 Author: Karel Zak Date: Tue Jan 30 13:49:50 2007 +0100 build-sys: fix ifdef ENABLE_WIDECHAR usage There has been unexpected mix of HAVE_WIDECHAR and ENABLE_WIDECHAR macros. The ENABLE_WIDECHAR is old version and has to be replaced everywhere otherwise we will see bugs with multibyte stuff. Signed-off-by: Karel Zak commit 5b0d01d619beafb50dfb6b62bdff2dfd364fab8c Author: Karel Zak Date: Sun Jan 28 01:24:15 2007 +0100 tests: add return code Signed-off-by: Karel Zak commit b6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e Author: Karel Zak Date: Fri Jan 26 20:06:38 2007 +0100 raw: add file with udev rule example Signed-off-by: Karel Zak commit 3f88ee97319e2662c7a6369f5f3565c9b03ac065 Author: Karel Zak Date: Fri Jan 26 20:01:39 2007 +0100 raw: move the raw command to /sbin The raw command could be used from udev scripts. Signed-off-by: Karel Zak commit 34ab1590bd5001801e3417456161bd77265425f7 Author: Karel Zak Date: Fri Jan 26 19:55:41 2007 +0100 raw: don't accept raw0 as a target name The raw0 is rawctl and cannot be used as a normal raw device. The patch also enlarge range of for raw and improve the query mode. Signed-off-by: Karel Zak commit 69616d88d47f51147480a64962f1fed91f9b8732 Author: Karel Zak Date: Thu Jan 25 11:22:42 2007 +0100 raw: update man page (about dd and O_DIRECT) Signed-off-by: Karel Zak commit 42c9ce52aaf4d5a060ac435a9a988005a8e0807a Author: Karel Zak Date: Wed Jan 17 14:27:15 2007 +0100 hexdump: don't use memset with zero lenght gcc 4.1.0: "warning: memset used with constant zero length parameter...." Signed-off-by: Karel Zak commit df3773fba068c88ec4ce2d3b65dec57146d2b730 Author: Karel Zak Date: Tue Jan 16 15:24:13 2007 +0100 schedutils: add support for SCHED_BATCH Signed-off-by: Karel Zak commit 5ee003094ef4c4410f17c171140c29368804dc29 Author: Karel Zak Date: Tue Jan 16 14:30:24 2007 +0100 schedutils: remove extra hyptens from man pages Signed-off-by: Karel Zak commit b268a0714a5d75bc17b94932c8f7eb23103a00ac Author: Karel Zak Date: Thu Jan 4 15:02:25 2007 +0100 po: rename mount/mntent.c to mount/mount_mntent.c Signed-off-by: Karel Zak commit b30cd7eed5b70c5eaf08f8681eb3f717c4d11329 Author: Karel Zak Date: Wed Jan 3 01:07:55 2007 +0100 ipcs: add new tests for ipcs limits The tests check if data from kernel and from the ipcs command are same. Signed-off-by: Karel Zak commit 0f0584addc6c6301836455724d32a98b02cae159 Author: Karel Zak Date: Thu Jan 4 14:53:19 2007 +0100 tests: add simple helper that returns info about system usage: tests/helpers/mnt_test_sysinfo Signed-off-by: Karel Zak commit cdd540c19f6c6360809b320a64f00a938dea4744 Author: Karel Zak Date: Fri Dec 29 01:13:58 2006 +0100 ipcs: max total shared memory in kbytes instead pages The ipcs command has reported "max total shared memory" as a number of pages. The others IPC limits are reported in (k)bytes, so it doesn't make sense mix pages and bytes in the same output. Now "max total shared memory" is reported in kbytes. [Migration note: type="API change", severity="low"] Signed-off-by: Karel Zak commit 4ac0f9d0c292c7d851e5931efc48819f6276d441 Author: Karel Zak Date: Thu Dec 28 23:09:29 2006 +0100 ipcs: fix typo in Semaphore headers Signed-off-by: Karel Zak commit 97cdb3cb5c7c20da3bc28962001b33c4ea083d69 Author: Karel Zak Date: Wed Jan 3 00:42:23 2007 +0100 ipcs: add regression test for output headers Signed-off-by: Karel Zak commit 8271f58d5122e2c8a9a68653767d6ca50692040c Author: Karel Zak Date: Wed Jan 3 00:28:02 2007 +0100 more: fix file descriptor leak When you view a file with the more command and run a shell, the file descriptor for reading the file is leaked to that process. To test, more any file. Then do !/bin/sh. At the prompt do "ls -l /proc/$$/fd" and you'll see the leaked fd. From: Steve Grubb Signed-off-by: Karel Zak commit d057115966720db64c3fbf7b2f3821709fe0a08c Author: Karel Zak Date: Thu Dec 28 22:26:02 2006 +0100 execl() should be use NULL not 0 Signed-off-by: Karel Zak commit 8174c9ca720fdcb98f0da09de792ecea9d340691 Author: Karel Zak Date: Thu Jan 4 14:39:17 2007 +0100 build-sys: remove DEFAULT_INCLUDES workaround The automake stuff uses "-I.". as a default gcc option for includes. This is a problem for source code where is local includes with a same name like system includes (e.g. mntent.h, paths.h). Possible workaround is overwrite the automake DEFAULT_INCLUDES variable. But this solution produces warnings. The best way (this patch) is probably rename the files and remove DEFAULT_INCLUDES. Signed-off-by: Karel Zak commit e83446da1a3f626920d5e65d4f78651581765b61 Author: Karel Zak Date: Thu Jan 4 14:23:48 2007 +0100 tests: add basic infrastructure for regression tests The patch adds tests/ directory with simple regression tests infrastructure. Also, it adds the "ts-mount-paths" test that testing if all defined paths (fstab, mtab, locks) are still same. Signed-off-by: Karel Zak commit 61d9d2ff1cb0e28e2b88099bbc5b919fa5004fce Author: Karel Zak Date: Wed Dec 27 23:35:56 2006 +0100 mount: add simple (printf-like) debug routine and --debug option The --debug= command line option enables debug outputs. It's undocumented option, because it's really for debug/tests purpose only. Signed-off-by: Karel Zak commit 5bbc26de59732f9a24d98a769c2d7a827e550625 Author: Karel Zak Date: Thu Jan 4 13:44:06 2007 +0100 build-sys: rename to -ng, change maintainer name Signed-off-by: Karel Zak commit 562218e6ea1926723045713e52449c24c6ccff1f Author: Karel Zak Date: Thu Jan 4 11:57:07 2007 +0100 build-sys: add missing files This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak commit 8eeb575c0d4a0a7af62615829ae99fed4ee3c08c Author: Karel Zak Date: Wed Jan 3 22:20:44 2007 +0100 build-sys: remove generated autotools stuff from git The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak