summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/su.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/su.c b/loginutils/su.c
index 133f6ed..e1c1591 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -24,7 +24,7 @@ int su_main(int argc, char **argv)
flags = getopt32(argc, argv, "mplc:s:", &opt_command, &opt_shell);
argc -= optind;
- argv -= optind;
+ argv += optind;
if (argc && LONE_DASH(argv[0])) {
flags |= SU_OPT_l;