aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-29 11:49:41 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-29 11:49:41 +0000
commitfb48f6c982479f21457ef652f8a9ffc14b0a6b75 (patch)
tree03629b645aa7d090eab8f9424456a482c5939336
parent76c476f817864ce27c1c241528a9d005246bdaae (diff)
downloadbusybox-w32-fb48f6c982479f21457ef652f8a9ffc14b0a6b75.tar.gz
busybox-w32-fb48f6c982479f21457ef652f8a9ffc14b0a6b75.tar.bz2
busybox-w32-fb48f6c982479f21457ef652f8a9ffc14b0a6b75.zip
mount: allow (and ignore) -i
-rw-r--r--util-linux/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 0819be4d1..e7818ac9f 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1557,7 +1557,7 @@ int mount_main(int argc, char **argv)
1557 1557
1558 // Parse remaining options 1558 // Parse remaining options
1559 1559
1560 opt = getopt32(argv, "o:t:rwanfvs", &opt_o, &fstype); 1560 opt = getopt32(argv, "o:t:rwanfvsi", &opt_o, &fstype);
1561 if (opt & 0x1) append_mount_options(&cmdopts, opt_o); // -o 1561 if (opt & 0x1) append_mount_options(&cmdopts, opt_o); // -o
1562 //if (opt & 0x2) // -t 1562 //if (opt & 0x2) // -t
1563 if (opt & 0x4) append_mount_options(&cmdopts, "ro"); // -r 1563 if (opt & 0x4) append_mount_options(&cmdopts, "ro"); // -r
@@ -1567,6 +1567,7 @@ int mount_main(int argc, char **argv)
1567 if (opt & 0x40) USE_FEATURE_MTAB_SUPPORT(fakeIt = 1); // -f 1567 if (opt & 0x40) USE_FEATURE_MTAB_SUPPORT(fakeIt = 1); // -f
1568 //if (opt & 0x80) // -v: verbose (ignore) 1568 //if (opt & 0x80) // -v: verbose (ignore)
1569 //if (opt & 0x100) // -s: sloppy (ignore) 1569 //if (opt & 0x100) // -s: sloppy (ignore)
1570 //if (opt & 0x200) // -i: don't call mount.<fstype> (ignore)
1570 argv += optind; 1571 argv += optind;
1571 argc -= optind; 1572 argc -= optind;
1572 1573