From: nekral-guest Date: Sat, 17 Nov 2007 15:07:59 +0000 (+0000) Subject: Allow the -b option even without the -D option. X-Git-Tag: 4.1.0~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e39a941413cd227f872a4182f28760660eae12d3;p=shadow Allow the -b option even without the -D option. --- diff --git a/ChangeLog b/ChangeLog index eda82668..b3a7bcc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-17 Nicolas François + + * src/useradd.c: Allow the -b option even without the -D option. + 2007-11-17 Nicolas François * src/usermod.c: Use the same error message for the below errors. diff --git a/src/useradd.c b/src/useradd.c index 882ce431..4527a573 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -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,