From: LaMont Jones Date: Wed, 5 Dec 2007 03:30:16 +0000 (-0700) Subject: Merge branch 'stable/v2.13'; commit 'origin/master' X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a33c7ff679705262baa26c7730cd5f2640c3b5;p=util-linux Merge branch 'stable/v2.13'; commit 'origin/master' Conflicts: getopt/getopt.1 --- 63a33c7ff679705262baa26c7730cd5f2640c3b5 diff --cc fdisk/sfdisk.c index c7319485,1241f662,99e165ef..a3b66174 --- a/fdisk/sfdisk.c +++ b/fdisk/sfdisk.c @@@@ -46,10 -46,8 -46,9 +46,9 @@@@ #include #include #include -- #include /* _syscall */ #include "nls.h" + #include "blkdev.h" + #include "linux_version.h" #include "common.h" #include "gpt.h" diff --cc mount/Makefile.am index 407a2aba,41ae3fb0,6efc7554..8b16baf0 --- a/mount/Makefile.am +++ b/mount/Makefile.am @@@@ -8,13 -8,12 -8,13 +8,13 @@@@ man_MANS = fstab.5 mount.8 swapoff.8 sw utils_common = sundries.c xmalloc.c realpath.c fsprobe.c - headers_common = fstab.h linux_fs.h mount_mntent.h mount_constants.h my_dev_t.h \ - mount_paths.h lomount.h fsprobe.h realpath.h xmalloc.h \ + headers_common = fstab.h mount_mntent.h mount_constants.h \ - mount_paths.h lomount.h fsprobe.h realpath.h xmalloc.h \ ++ lomount.h fsprobe.h realpath.h xmalloc.h \ getusername.h loop.h sundries.h -mount_common = fstab.c mount_mntent.c getusername.c lomount.c \ +mount_common = fstab.c mount_mntent.c getusername.c lomount.c rmd160.c \ - $(utils_common) $(headers_common) ../lib/env.c + $(utils_common) $(headers_common) ../lib/env.c ../lib/linux_version.c \ + ../lib/blkdev.c mount_SOURCES = mount.c $(mount_common) ../lib/setproctitle.c mount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS) @@@@ -26,8 -25,7 -26,8 +26,8 @@@@ umount_LDFLAGS = $(SUID_LDFLAGS) $(AM_L swapon_SOURCES = swapon.c swap_constants.h $(utils_common) - losetup_SOURCES = lomount.c loop.h lomount.h rmd160.c + losetup_SOURCES = lomount.c sundries.c xmalloc.c realpath.c \ - loop.h lomount.h xmalloc.h sundries.h realpath.h ++ loop.h lomount.h xmalloc.h sundries.h realpath.h rmd160.c losetup_CPPFLAGS = -DMAIN $(AM_CPPFLAGS) mount_LDADD = $(LDADD_common) diff --cc mount/mount.c index 72900190,6a154ae1,99ad9703..dd7c6b12 --- a/mount/mount.c +++ b/mount/mount.c @@@@ -37,12 -37,11 -37,11 +37,11 @@@@ #include "fstab.h" #include "lomount.h" #include "loop.h" - #include "linux_fs.h" /* for BLKGETSIZE */ #include "getusername.h" -- #include "mount_paths.h" #include "env.h" #include "nls.h" + #include "blkdev.h" + #include "realpath.h" #define DO_PS_FIDDLING @@@@ -62,14 -64,14 -61,8 +61,14 @@@@ static int nomtab = 0 /* True for explicit readonly (-r). */ static int readonly = 0; +/* Nonzero for chatty (-v). */ +int verbose = 0; + +/* Do we hash the password or not */ +int hash_pass = 1; + /* Nonzero for sloppy (-s). */ - int sloppy = 0; + static int sloppy = 0; /* True for explicit read/write (-w). */ static int readwrite = 0; @@@@ -1676,9 -1640,13 -1660,8 +1675,9 @@@@ static struct option longopts[] = { "options", 1, 0, 'o' }, { "test-opts", 1, 0, 'O' }, { "pass-fd", 1, 0, 'p' }, + { "keybits", 1, 0, 'k' }, { "types", 1, 0, 't' }, { "bind", 0, 0, 128 }, - { "replace", 0, 0, 129 }, - { "after", 0, 0, 130 }, - { "before", 0, 0, 131 }, - { "over", 0, 0, 132 }, { "move", 0, 0, 133 }, { "guess-fstype", 1, 0, 134 }, { "rbind", 0, 0, 135 }, @@@@ -2009,9 -1994,8 -1989,7 +2009,9 @@@@ main(int argc, char *argv[]) create_mtab (); } + if (keysize && sscanf(keysize,"%d",&keysz) != 1) + die (EX_USAGE, _("mount: argument to --keybits or -k must be a number")); + atexit(unlock_mtab); switch (argc+specseen) { case 0: