mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
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);
|
||||
argc -= optind;
|
||||
argv -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc && LONE_DASH(argv[0])) {
|
||||
flags |= SU_OPT_l;
|
||||
|
Loading…
Reference in New Issue
Block a user