From e13a537795751bee8e2b7fe2b88c75436acd9da0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 23 Dec 2006 02:59:06 +0000 Subject: [PATCH] su: fix typo: "argv -= optind" should be += --- loginutils/su.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1