summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorRaghavendra D Prabhu2012-02-26 12:06:42 +0100
committerKarel Zak2012-02-28 15:37:29 +0100
commit50d0ad9875af9e478cd2577ac42041b16170a691 (patch)
tree622ae29ec48cef7423a72b7deaffe76a59e9de03 /sys-utils/mount.c
parentbuild-sys: add a crosscompile path for scanf_cv_alloc_modifier (diff)
downloadkernel-qcow2-util-linux-50d0ad9875af9e478cd2577ac42041b16170a691.tar.gz
kernel-qcow2-util-linux-50d0ad9875af9e478cd2577ac42041b16170a691.tar.xz
kernel-qcow2-util-linux-50d0ad9875af9e478cd2577ac42041b16170a691.zip
mount: (new) add 'internal-only(i)' to non-root allowed options
Commit ce433404 introduced the change, which causes something like mount -i <user-mount-path> to break which worked well before util-linux-2.21, now it gives message 'mount: only root can use "--internal-only" option' when that shouldn't be the case when it is already in fstab. Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 23abc9173..8f5dcdbd6 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -712,7 +712,7 @@ int main(int argc, char **argv)
longopts, NULL)) != -1) {
/* only few options are allowed for non-root users */
- if (mnt_context_is_restricted(cxt) && !strchr("hlLUVvpr", c))
+ if (mnt_context_is_restricted(cxt) && !strchr("hlLUVvpri", c))
exit_non_root(option_to_longopt(c, longopts));
switch(c) {