From: Denis Vlasenko Date: Sat, 23 Dec 2006 02:59:06 +0000 (-0000) Subject: su: fix typo: "argv -= optind" should be += X-Git-Tag: 1_4_0~188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e13a537795751bee8e2b7fe2b88c75436acd9da0;p=oweals%2Fbusybox.git su: fix typo: "argv -= optind" should be += --- 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;