Merge pull request #455 from alejandro-colomar/master

usermod: Remove special case for ""
This commit is contained in:
Serge Hallyn 2021-12-17 08:33:47 -06:00 committed by GitHub
commit 2a6164cc4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1094,7 +1094,6 @@ static void process_flags (int argc, char **argv)
}
break;
case 'e':
if ('\0' != *optarg) {
user_newexpire = strtoday (optarg);
if (user_newexpire < -1) {
fprintf (stderr,
@ -1103,9 +1102,6 @@ static void process_flags (int argc, char **argv)
exit (E_BAD_ARG);
}
user_newexpire *= DAY / SCALE;
} else {
user_newexpire = -1;
}
eflg = true;
break;
case 'f':