From: Karel Zak Date: Thu, 14 Jun 2012 12:43:21 +0000 (+0200) Subject: mount: (new) allow sloppy for non-root X-Git-Tag: v2.22-rc1~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26de525e21677c680d87f63e4dafbe4859365bf;p=thirdparty%2Futil-linux.git mount: (new) allow sloppy for non-root Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=825836 Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 2b8843cc7e..9cc2db3123 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -731,7 +731,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("hlLUVvpri", c)) + if (mnt_context_is_restricted(cxt) && !strchr("hlLUVvpris", c)) exit_non_root(option_to_longopt(c, longopts)); switch(c) {