From: Karel Zak Date: Wed, 10 Apr 2013 12:21:22 +0000 (+0200) Subject: su: remove '+' from getopt_long() X-Git-Tag: v2.23-rc2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49932ad8dbe2a792fec666e986038ac59a907ca7;p=thirdparty%2Futil-linux.git su: remove '+' from getopt_long() # /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 --- diff --git a/login-utils/su-common.c b/login-utils/su-common.c index 5a7b5ff023..bd168ce116 100644 --- a/login-utils/su-common.c +++ b/login-utils/su-common.c @@ -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) {