]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (new) allow sloppy for non-root
authorKarel Zak <kzak@redhat.com>
Thu, 14 Jun 2012 12:43:21 +0000 (14:43 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Jun 2012 12:43:21 +0000 (14:43 +0200)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=825836
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.c

index 2b8843cc7e51b220ccd307ca251ba54b792a8e4a..9cc2db31236662fa3c5bb17d7448d7dd9953d43f 100644 (file)
@@ -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) {