aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-23 02:59:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-23 02:59:06 +0000
commite13a537795751bee8e2b7fe2b88c75436acd9da0 (patch)
treeec2aae10c7b2d89cb8623df85fc70482fee9e134 /loginutils
parent1dc1b37b337030807d7b35b415373593e3f72dda (diff)
downloadbusybox-e13a537795751bee8e2b7fe2b88c75436acd9da0.tar.gz
su: fix typo: "argv -= optind" should be +=
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 133f6ed63..e1c1591aa 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;