]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: remove '+' from getopt_long()
authorKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 12:21:22 +0000 (14:21 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 12:24:54 +0000 (14:24 +0200)
 # /bin/su - -c 'echo test'
 su: user -c does not exist

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=950495
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index 5a7b5ff023c2d29993acf3bf6f66b411b4f15579..bd168ce11667a8a39345ff2136d0a0e5c230db44 100644 (file)
@@ -735,7 +735,7 @@ su_main (int argc, char **argv, int mode)
   simulate_login = false;
   change_environment = true;
 
-  while ((optc = getopt_long (argc, argv, "+c:fg:G:lmps:u:hV", longopts, NULL)) != -1)
+  while ((optc = getopt_long (argc, argv, "c:fg:G:lmps:u:hV", longopts, NULL)) != -1)
     {
       switch (optc)
        {