su: fix typo: "argv -= optind" should be +=
This commit is contained in:
parent
1dc1b37b33
commit
e13a537795
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user