su: fix typo: "argv -= optind" should be +=

This commit is contained in:
Denis Vlasenko 2006-12-23 02:59:06 +00:00
parent 1dc1b37b33
commit e13a537795

View File

@ -24,7 +24,7 @@ int su_main(int argc, char **argv)
flags = getopt32(argc, argv, "mplc:s:", &opt_command, &opt_shell); flags = getopt32(argc, argv, "mplc:s:", &opt_command, &opt_shell);
argc -= optind; argc -= optind;
argv -= optind; argv += optind;
if (argc && LONE_DASH(argv[0])) { if (argc && LONE_DASH(argv[0])) {
flags |= SU_OPT_l; flags |= SU_OPT_l;