Import Debian patch 434_login_stop_checking_args_after--
* NEWS, src/login.c (check_flags): Stop checking the arguments after --. The later options will be sent to the shell, and do not need to be checked.
This commit is contained in:
@ -251,6 +251,9 @@ static void check_flags (int argc, char *const *argv)
|
||||
for (arg = 1; arg < argc; arg++) {
|
||||
if (argv[arg][0] == '-' && strlen (argv[arg]) > 2)
|
||||
usage ();
|
||||
if (strcmp(argv[arg], "--") == 0) {
|
||||
break; /* stop checking on a "--" */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user