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

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':