su: fix typo: "argv -= optind" should be +=
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 23 Dec 2006 02:59:06 +0000 (02:59 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 23 Dec 2006 02:59:06 +0000 (02:59 -0000)
loginutils/su.c

index 133f6ed632f584c01c4b600c35573a40db40933f..e1c1591aa6dab292b9005f476a7eb612877ddd4d 100644 (file)
@@ -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;