Merge pull request #455 from alejandro-colomar/master
usermod: Remove special case for ""
This commit is contained in:
commit
2a6164cc4a
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user