Allow the -b option even without the -D option.

This commit is contained in:
nekral-guest 2007-11-17 15:07:59 +00:00
parent 87b5ce3036
commit e39a941413
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Allow the -b option even without the -D option.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Use the same error message for the below errors.

View File

@ -1005,9 +1005,6 @@ static void process_flags (int argc, char **argv)
long_options, NULL)) != -1) {
switch (c) {
case 'b':
if (!Dflg)
usage ();
if (!VALID (optarg)
|| optarg[0] != '/') {
fprintf (stderr,