summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-23 02:59:06 +0000
committerDenis Vlasenko2006-12-23 02:59:06 +0000
commite13a537795751bee8e2b7fe2b88c75436acd9da0 (patch)
treeec2aae10c7b2d89cb8623df85fc70482fee9e134 /loginutils
parent1dc1b37b337030807d7b35b415373593e3f72dda (diff)
downloadbusybox-e13a537795751bee8e2b7fe2b88c75436acd9da0.zip
busybox-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 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;