All arguments are already reordered and parsed by getopt_long since
e663c69, so manual '--' slurping is wrong.
Closes #101
if ((optind < argc) && (strcmp (argv[optind], "-") == 0)) {
fakelogin = true;
optind++;
- if ( (optind < argc)
- && (strcmp (argv[optind], "--") == 0)) {
- optind++;
- }
}
/*
*/
if ((optind < argc) && ('-' != argv[optind][0])) {
STRFCPY (name, argv[optind++]); /* use this login id */
- if ((optind < argc) && (strcmp (argv[optind], "--") == 0)) {
- optind++;
- }
}
if ('\0' == name[0]) { /* use default user */
struct passwd *root_pw = getpwnam ("root");