Allow the -b option even without the -D option.
This commit is contained in:
parent
87b5ce3036
commit
e39a941413
@ -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>
|
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/usermod.c: Use the same error message for the below errors.
|
* src/usermod.c: Use the same error message for the below errors.
|
||||||
|
@ -1005,9 +1005,6 @@ static void process_flags (int argc, char **argv)
|
|||||||
long_options, NULL)) != -1) {
|
long_options, NULL)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'b':
|
case 'b':
|
||||||
if (!Dflg)
|
|
||||||
usage ();
|
|
||||||
|
|
||||||
if (!VALID (optarg)
|
if (!VALID (optarg)
|
||||||
|| optarg[0] != '/') {
|
|| optarg[0] != '/') {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user