* NEWS, src/useradd.c: Fix the handling of the --defaults option

(it required an argument, but should behave as -D)
* NEWS, man/useradd.8.xml: Document the --defaults option, which
  was already described in the useradd's Usage information.
This commit is contained in:
nekral-guest
2008-01-12 21:09:46 +00:00
parent 85febc5729
commit b082ebead2
4 changed files with 14 additions and 2 deletions

View File

@ -932,7 +932,7 @@ static void process_flags (int argc, char **argv)
{"base-dir", required_argument, NULL, 'b'},
{"comment", required_argument, NULL, 'c'},
{"home-dir", required_argument, NULL, 'd'},
{"defaults", required_argument, NULL, 'D'},
{"defaults", no_argument, NULL, 'D'},
{"expiredate", required_argument, NULL, 'e'},
{"inactive", required_argument, NULL, 'f'},
{"gid", required_argument, NULL, 'g'},