diff options
author | Karel Zak | 2013-04-10 14:21:22 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-10 14:24:54 +0200 |
commit | 49932ad8dbe2a792fec666e986038ac59a907ca7 (patch) | |
tree | cf13ba9a3e245cfce1c165afc66ba578a3c6dc8d /login-utils | |
parent | loopdev: sync capacity after setting it (diff) | |
download | kernel-qcow2-util-linux-49932ad8dbe2a792fec666e986038ac59a907ca7.tar.gz kernel-qcow2-util-linux-49932ad8dbe2a792fec666e986038ac59a907ca7.tar.xz kernel-qcow2-util-linux-49932ad8dbe2a792fec666e986038ac59a907ca7.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/su-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/su-common.c b/login-utils/su-common.c index 5a7b5ff02..bd168ce11 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) { |