* 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
compiled when disabled at configuration time.
* 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>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1991 - 1994, Julianne Frances Haugh
Copyright (c) 2007 - 2008, Nicolas François
Copyright (c) 2007 - 2009, Nicolas François
All rights reserved.
Redistribution and use in source and binary forms, with or without
@ -300,7 +300,7 @@
</listitem>
</varlistentry>
<varlistentry>
<term><option>-l</option></term>
<term><option>-l</option>, <option>--no-log-init</option></term>
<listitem>
<para>
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"
" -k, --skel SKEL_DIR specify an alternative skel directory\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"
" -m, --create-home create home directory for the new user\n"
" account\n"
@ -966,6 +966,7 @@ static void process_flags (int argc, char **argv)
{"key", required_argument, NULL, 'K'},
{"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'},
{"non-unique", no_argument, NULL, 'o'},
{"password", required_argument, NULL, 'p'},