aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 4d5c2243a..4eade0869 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -69,7 +69,6 @@
69//config: bool "Support mounting NFS file systems on Linux < 2.6.23" 69//config: bool "Support mounting NFS file systems on Linux < 2.6.23"
70//config: default n 70//config: default n
71//config: depends on MOUNT 71//config: depends on MOUNT
72//config: select FEATURE_HAVE_RPC
73//config: select FEATURE_SYSLOG 72//config: select FEATURE_SYSLOG
74//config: help 73//config: help
75//config: Enable mounting of NFS file systems on Linux kernels prior 74//config: Enable mounting of NFS file systems on Linux kernels prior
@@ -2205,10 +2204,14 @@ int mount_main(int argc UNUSED_PARAM, char **argv)
2205 2204
2206 // Parse remaining options 2205 // Parse remaining options
2207 // Max 2 params; -o is a list, -v is a counter 2206 // Max 2 params; -o is a list, -v is a counter
2208 opt_complementary = "?2" IF_FEATURE_MOUNT_VERBOSE("vv"); 2207 opt = getopt32(argv, "^"
2209 opt = getopt32(argv, OPTION_STR, &lst_o, &fstype, &O_optmatch 2208 OPTION_STR
2210 IF_FEATURE_MOUNT_OTHERTAB(, &fstabname) 2209 "\0" "?2"IF_FEATURE_MOUNT_VERBOSE("vv"),
2211 IF_FEATURE_MOUNT_VERBOSE(, &verbose)); 2210 &lst_o, &fstype, &O_optmatch
2211 IF_FEATURE_MOUNT_OTHERTAB(, &fstabname)
2212 IF_FEATURE_MOUNT_VERBOSE(, &verbose)
2213 );
2214
2212 while (lst_o) append_mount_options(&cmdopts, llist_pop(&lst_o)); // -o 2215 while (lst_o) append_mount_options(&cmdopts, llist_pop(&lst_o)); // -o
2213 if (opt & OPT_r) append_mount_options(&cmdopts, "ro"); // -r 2216 if (opt & OPT_r) append_mount_options(&cmdopts, "ro"); // -r
2214 if (opt & OPT_w) append_mount_options(&cmdopts, "rw"); // -w 2217 if (opt & OPT_w) append_mount_options(&cmdopts, "rw"); // -w