* src/useradd.c, man/useradd.8.xml: Added long name for the -l

option: --no-log-init.
This commit is contained in:
nekral-guest 2009-03-13 22:30:38 +00:00
parent f98b47eb55
commit fafe281d31
3 changed files with 6 additions and 3 deletions

View File

@ -8,6 +8,8 @@
* src/chgpasswd.c: Make sure the SHA related variables is not * src/chgpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time. compiled when disabled at configuration time.
* src/chgpasswd.c: Fix the test for getlong() failure. * src/chgpasswd.c: Fix the test for getlong() failure.
* src/useradd.c, man/useradd.8.xml: Added long name for the -l
option: --no-log-init.
2009-03-13 Nicolas François <nicolas.francois@centraliens.net> 2009-03-13 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Copyright (c) 1991 - 1994, Julianne Frances Haugh Copyright (c) 1991 - 1994, Julianne Frances Haugh
Copyright (c) 2007 - 2008, Nicolas François Copyright (c) 2007 - 2009, Nicolas François
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -300,7 +300,7 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-l</option></term> <term><option>-l</option>, <option>--no-log-init</option></term>
<listitem> <listitem>
<para> <para>
Do not add the user to the lastlog and faillog databases. Do not add the user to the lastlog and faillog databases.

View File

@ -700,7 +700,7 @@ static void usage (void)
" -h, --help display this help message and exit\n" " -h, --help display this help message and exit\n"
" -k, --skel SKEL_DIR specify an alternative skel directory\n" " -k, --skel SKEL_DIR specify an alternative skel directory\n"
" -K, --key KEY=VALUE overrides /etc/login.defs defaults\n" " -K, --key KEY=VALUE overrides /etc/login.defs defaults\n"
" -l, do not add the user to the lastlog and\n" " -l, --no-log-init do not add the user to the lastlog and\n"
" faillog databases\n" " faillog databases\n"
" -m, --create-home create home directory for the new user\n" " -m, --create-home create home directory for the new user\n"
" account\n" " account\n"
@ -966,6 +966,7 @@ static void process_flags (int argc, char **argv)
{"key", required_argument, NULL, 'K'}, {"key", required_argument, NULL, 'K'},
{"create-home", no_argument, NULL, 'm'}, {"create-home", no_argument, NULL, 'm'},
{"no-create-home", no_argument, NULL, 'M'}, {"no-create-home", no_argument, NULL, 'M'},
{"no-log-init", no_argument, NULL, 'l'},
{"no-user-group", no_argument, NULL, 'N'}, {"no-user-group", no_argument, NULL, 'N'},
{"non-unique", no_argument, NULL, 'o'}, {"non-unique", no_argument, NULL, 'o'},
{"password", required_argument, NULL, 'p'}, {"password", required_argument, NULL, 'p'},