Files
shadow/ChangeLog
T

10722 lines
493 KiB
Plaintext
Raw Normal View History

2009-03-07 Nicolas François <nicolas.francois@centraliens.net>
* man/groupmems.8.xml: groupmems does not create new user.
2009-03-03 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
Timur Birsh <taem@linukz.org>.
2009-02-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling
getgrent()/getpwent() after they return NULL. This caused LDAP to
return at the beginning of the group/user entries.
2009-01-27 Nicolas François <nicolas.francois@centraliens.net>
* man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).
2009-01-26 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/gpasswd.c: Only report success to audit and syslog
when the changes are committed to the system. Do not log failure
for on-memory changes to audit or syslog. Make sure failures and
inconsistencies will be reported in case of unexpected failures
(e.g. malloc failures). Only specify an audit message if it is not
implicitly implied by the type argument. Removed fail_exit
(replaced by atexit(do_cleanups)). Log failures in case of
permission denied.
2009-01-19 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
limitations.
* man/limits.5.xml: Remove space before an end of tag.
* man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
man/login.defs.5.xml: Document the CREATE_HOME variable.
* etc/login.defs: Improve the documentation of UMASK.
2009-01-06 Sebastian Rick Rijkers <srrijkers@gmail.com>
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
is called with the -l option.
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chkname.c: Use a bool when possible instead of integers.
* libmisc/chkname.c: Add brackets and parenthesis.
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
real group name length limit in the documentation.
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
* src/Makefile.am: Only link with the needed library. When
compiled with PAM support, chfn, chsh, login, newgrp, passwd, and
su do not need the libcrypt library.
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/cleanup_group.c: Fix compilation when compiled without
shadow group support.
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: Remove the fail_exit () declaration.
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Fix the support for usernames with arbitrary
length.
2008-12-22 22:03:34 +00:00
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
2008-12-22 22:07:12 +00:00
* src/groupadd.c, src/groupdel.c, src/groupmod.c: Re-indent.
2008-12-22 22:06:27 +00:00
* src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information.
* libmisc/chkname.c: Remove outdated comments.
2008-12-22 22:03:34 +00:00
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/audit_help.c: Added audit_logger_message() to log
messages not related to an account.
* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
cleanup functions to be executed on exit.
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
report success to audit and syslog when the changes are committed
to the system. Do not log failure for on-memory changes to audit
or syslog. Make sure failures and inconsistencies will be reported
in case of unexpected failures (e.g. malloc failures). Only
specify an audit message if it is not implicitly implied by the
type argument. Removed fail_exit (replaced by atexit(do_cleanups)).
2008-12-15 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/gpasswd.c: Added support usernames with arbitrary
length.
2008-11-27 Mike Frysinger <vapier@gentoo.org>
* configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.
2008-11-27 Mike Frysinger <vapier@gentoo.org>
* NEWS, configure.in, libmisc/chkname.c: make group max length a
configure option. The configure behavior encoded is:
<no option> -> default of 16 (like today);
--with-group-name-max-length -> default of 16;
--without-group-name-max-length -> no max length;
--with-group-name-max-length=n > max is set to n.
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: (!USE_PAM) Provide visible information indicating that
su was denied.
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
* man/su.1.xml: Fix the su synopsis. username is referenced in the
manpage, not LOGIN.
* man/ja/login.1: Fix the path of the utmp and wtmp files.
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
failures.
* libmisc/chowntty.c: Only closelog() when failure cause an exit.
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
gaining ownership or changing mode of arbitrary files.
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.
2008-10-11 Nicolas François <nicolas.francois@centraliens.net>
* man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
man/grpck.8.xml: Sorted SEE ALSO references.
* man/gshadow.5.xml: Added reference to grpck(8) and grpconv(8).
* man/pwck.8.xml: Added reference to grpck(8).
* man/shadow.5.xml: Added reference to pwck(8).
* man/passwd.5.xml: Added reference to pwck(8).
* man/grpck.8.xml: Added reference to pwck(8).
2008-10-11 Nicolas François <nicolas.francois@centraliens.net>
* man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
header.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Always check the return value of the pam_* APIs.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Use a dynamic buffer for usernames.
* src/login.c: Copy the name of the user authenticated by PAM to
username. This simplify later logging (avoid USE_PAM
conditional).
* src/login.c: Check that no username is specified with -r.
* src/login.c: Make sure a username is specified with -f.
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
sections.
* src/login.c: Erase the username later since it it used for the
fake password check (in case of empty password).
* src/login.c, man/login.1.xml: the username is not an optional
parameter of -f. Fix the getopt optstring, remove the parsing of
username in the -f processing block, and remove unnecessary checks
(username cannot be parsed twice anymore), better documentation of
the synopsis.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Existence of pam_user was already checked. pwd was
already copied to pwent. Remove duplicated code.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: check_flags() renamed process_flags(). All flag
processing blocs moved to process_flags().
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Add missing closing }. This was probably never
noticed because UT_ADDR is never defined.
2008-09-20 14:39:09 +00:00
* src/login.c: Re-indent.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Do not mix USE_PAM and !USE_PAM code.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Use failent_user to log to audit. username is the
caller, not the user login tries to authenticate.
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
be more precise (name must be unique, uid might not be).
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
* man/passwd.1.xml: passwd cannot change the full name of the
user, the user's login shell; but it can change the account or
password validity period. Thanks to Reuben Thomas.
2008-09-14 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Added missing declaration of Mflg.
* src/pwck.c: Only unlock files if they were locked before (e.g.
not in read-only mode).
* src/pwck.c: Quote the username in error messages (harmonization
with other messages).
* libmisc/find_new_gid.c: Fixed typo (s/grp->gr_gid/group_id/).
* libmisc/find_new_gid.c: Likewise.
2008-09-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/setugid.c, src/login_nopam.c, src/suauth.c,
lib/getdef.c: Replace the %m format string by strerror(). This
avoids errno to be reset between the system call error and the
report function.
2008-09-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Ignore the return value of umask() when the mask
is set to the old value.
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
to create a home directory for new users.
* src/useradd.c, man/useradd.8.xml: New -M/--no-create-home option
and CREATE_HOME usage. System accounts are not impacted by
CREATE_HOME.
* man/useradd.8.xml: Indicate that a new group is created by
default.
* src/useradd.c: Removed TODO item (moved to the TODO file).
2008-09-13 11:55:30 +00:00
2008-09-11 Miroslav Kuře <kurem@debian.cz>
* po/cs.po: Updated Czech translation.
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.d/USERGROUPS_ENAB.xml: Fix typo: new <para> tag
before the previous one is closed. This caused a missng
explanation for USERGROUPS_ENAB.
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
* man/groupadd.8.xml: Remove the list of (short) options from the
SYNOPSIS. Replaced with [options] for consistency with other tools
and maintainability.
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
From RedHat's patch shadow-4.1.2-sysAccountDownhill.patch
Thanks to Peter Vrabec.
* NEWS, libmisc/find_new_gid.c, libmisc/find_new_uid.c: Build an
index of used IDs to avoid a database request for each id in the
allowed range (when the highest allowed ID is already used).
This speedups the addition of users or groups when the highest
allowed ID is already used. The additional memory usage of the
tools should be acceptable when UID_MAX/SYS_UID_MAX are set to a
reasonable number.
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
USE_PAM. Build failed with --without-libpam.
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c, configure.in: Check for the presence of
st_mtim and st_mtimensec, as for st_atim and st_atimensec.
* libmisc/copydir.c: Call utimes() after closing the file.
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Document the long options in the usage.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Added configure --enable-account-tools-setuid (default) /
--disable-account-tools-setuid options. This permits to disable
the PAM authentication of the caller for chage, chgpasswd,
chpasswd, groupadd, groupdel, groupmod, newusers, useradd,
userdel, and usermod. This authentication is not necessary when
these tools are not installed setuid root.
* configure.in: Added option --enable-account-tools-setuid to
enable/disable the usage of PAM to authenticate the callers of
account management tools: chage, chgpasswd, chpasswd, groupadd,
groupdel, groupmod, useradd, userdel, usermod.
* src/Makefile.am: Do not link the above tools with libpam if
account-tools-setuid is disabled.
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/usermod.c,
src/groupdel.c, src/chgpasswd.c, src/useradd.c, src/groupmod.c,
src/groupadd.c, src/chage.c: Implement ACCT_TOOLS_SETUID
(--enable-account-tools-setuid).
* etc/pam.d/Makefile.am: Install the pam service file for the
above tools only when needed.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/tz.c: tz() is only used when USE_PAM is not defined.
* lib/prototypes.h: Indicate functions whose presence depends on
the USE_PAM flag.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Call open_files() and close_files().
* src/groupmems.c: Always call check_perms(), which takes care of
checking if --list is used.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c: Compare characters to '\0', not NULL.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Do not include <config.h>. This complicate
undefining some configuration macros when the file is included
multiple times.
* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
Include <config.h> from teh compiled C file, not the included
getXXbyYY.c.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
src/groupmems.c, src/usermod.c, src/groupdel.c, src/chgpasswd.c,
src/useradd.c, src/groupmod.c, src/groupadd.c, src/chage.c,
src/chsh.c: Simplify the PAM error handling. Do not keep the pamh
handle, but terminate the PAM transaction as soon as possible if
2008-09-06 23:46:44 +00:00
there are no PAM session opened. If the username cannot be
determined, report it as such (not a PAM authentication failure).
* src/useradd.c, src/userdel.c, src/usermod.c: It is no more
needed to initialize retval to PAM_SUCCESS.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c,
src/groupadd.c, src/chage.c, src/login.c, src/grpconv.c,
src/groups.c, src/grpunconv.c, src/chsh.c: Prog is now global (not
static to the file) so that it can be used by the helper functions
of libmisc.
* lib/prototypes.h: Added extern char *Prog.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Indicate the
program name with the warning.
2008-09-05 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.
2008-09-04 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Fix comment of lflg: it is also used for faillog.
2008-09-04 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
options.
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, libmisc/audit_help.c: Define new type
shadow_audit_result for the result argument of audit_logger().
This permits stronger type checking and a better readability of
the results (SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS constants).
* src/groupadd.c, src/groupdel.c, src/useradd.c, src/userdel.c:
Use the SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS results instead
of 0 or 1 in audit_logger().
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c: Log failures to remove the mailbox to syslog and
audit.
* src/userdel.c: Log successful removal of home directory to audit
only in case of success.
* src/userdel.c: Move the audit log of failure to remove the home
directory before the call to function that may exit.
* src/userdel.c: Document that errors is only used to count errors
during the removal of the home directory.
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Log errors to syslog in grp_update() since
changes have started to be reported to syslog.
* src/userdel.c: Fix some result parameters sent to
audit_logger().
2008-09-02 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Following changes from a patch contributed by Steve Grubb
<sgrubb@redhat.com>
* src/groupadd.c: Log to audit with type AUDIT_ADD_GROUP instead
of AUDIT_USER_CHAUTHTOK.
* src/groupdel.c: Log to audit with type AUDIT_DEL_GROUP instead
of AUDIT_USER_CHAUTHTOK.
* src/useradd.c: Log to audit with type AUDIT_ADD_USER /
AUDIT_ADD_GROUP / AUDIT_USYS_CONFIG instead of
AUDIT_USER_CHAUTHTOK.
* src/useradd.c: Add missing logs to audit.
* src/userdel.c: Log to audit with type AUDIT_DEL_USER /
AUDIT_DEL_GROUP instead of AUDIT_USER_CHAUTHTOK.
* src/userdel.c: Add missing logs to audit.
2008-08-31 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Remove duplicated gr_open().
2008-08-30 Nicolas François <nicolas.francois@centraliens.net>
* man/useradd.8.xml: Document the /etc/default/useradd variables.
* man/useradd.8.xml: Fix the documentation of the GROUP variable
(and -g/--gid option).
* man/useradd.8.xml: Document that -o is only valid with -u
2008-08-31 17:30:45 +00:00
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* shadow.spec.in: Fix the source (new FTP).
2008-08-31 17:30:30 +00:00
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Add brackets and parenthesis.
* src/su.c: Avoid implicit conversion of pointers to booleans.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/list.c: Remove historical comment.
* libmisc/list.c: Added assertions for non NULL parameters.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
provided.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Add brackets and parenthesis.
* src/passwd.c: Avoid implicit conversion of pointers to booleans.
* src/passwd.c: Avoid assignments in comparisons.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c, man/groupmems.8.xml: Added support for
shadow groups.
* src/groupmems.c: Use fail_exit() instead of exit().
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: The grp structure returned by gr_locate is a
const. Duplicate this structure before working on it.
* src/groupmems.c: Do not fail and do not display warnings if a
close failure happens with the --list option. (Files are opened
read-only).
* src/groupmems.c: Avoid mixed declarations and code.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid
clashes with the valid() function.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c: Add brackets and parenthesis.
* libmisc/obscure.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/obscure.c: Simplify the list of if.
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Fix a typo in the Usage string.
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* src/grpconv.c, src/groups.c: Name the parameters in the
prototypes of the static functions.
2008-08-31 17:28:30 +00:00
* src/grpconv.c, src/grpunconv.c, src/logoutd.c: Fail if
unexpected parameters are provided.
* src/grpconv.c, src/grpunconv.c: Indicate that argc is not used
in the no SHADOWGRP version.
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
no more used.
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Fix the format for long integers (from %ul to %lu).
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c: Mark the line and host arguments of setutmp() as
not used in the __linux__ version.
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* lib/nscd.c: Avoid redefinition of _GNU_SOURCE.
2008-08-31 17:27:06 +00:00
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Indentation fix.
* configure.in, src/login.c: Do not use HAVE_PAM_FAIL_DELAY, but
HAS_PAM_FAIL_DELAY, to avoid a redefinition with Linux PAM.
2008-08-31 17:27:06 +00:00
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Added functions add_user(), remove_user(), and
purge_members() to ease the support of gshadow.
2008-08-30 18:34:04 +00:00
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* src/expiry.c: Use Basename for Prog.
* src/expiry.c: Added missing OPENLOG.
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* lib/nscd.c: Make sure the file is not empty when configured
without nscd support.
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is
not used in any Makefile.am).
* configure.in: Make sure posix_spawn is present when configured
with nscd support.
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
parenthesis.
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Avoid assignments
in comparisons.
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/mail.c: Added brackets and parenthesis.
* libmisc/mail.c: Avoid assignments in comparisons.
2008-09-02 18:49:56 +00:00
2008-08-26 Tobias Poschwatta <tp@fonz.de>
2008-08-30 18:29:55 +00:00
* NEWS: Added support for uclibc.
* configure.in, libmisc/copydir.c: futimes() and lutimes() are not
standard. Check if they are implemented before using them. Do not
set the time of links if lutimes() does not exist, and use
utimes() as a replacement for futimes().
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd and
--without-nscd flags to support systems without nscd.
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
for the definition of uid_t and gid_t.
* lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient
here.
* configure.in: Check if the stat structure has a st_atim or
st_atimensec field.
* libmisc/copydir.c: Conditionally use the stat's st_atim and
st_atimensec fields.
2008-08-30 18:29:55 +00:00
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Handle the options alphabetically.
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: When removing an user, check if deluser is on
the list, not adduser. This fixes a segmentation fault for every
call of groupmems -d.
* libmisc/list.c: Add assertions to help identifying these issues.
* libmisc/list.c: Avoid implicit conversion of pointers to
booleans.
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c: Use the "groupmems" PAM service name
instead of "groupmod".
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c: Merge some translated messages.
* src/groupmems.c, src/groupadd.c, src/gpasswd.c, src/chsh.c,
src/chfn.c: Harmonize *_update() failure messages.
* src/groupmems.c: Harmonize gr_close() failure messages.
* src/newgrp.c: Harmonize "unknown GID" messages.
* src/newusers.c: Move the pwd declaration to a inner block scope.
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Harmonize some error messages.
* src/userdel.c: Add log to syslog when the mail file could not be
removed.
* src/userdel.c: Give more context an error message (merge with
perror()).
* src/usermod.c: Harmonize some error messages.
2008-08-25 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Check the return value of gr_update().
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/passwd.c, src/pwck.c, src/pwconv.c, src/pwunconv.c,
src/useradd.c, src/userdel.c, src/usermod.c: Harmonize the error
message sent to stderr in case of *_update () failure.
* src/chage.c, src/chsh.c, src/groupadd.c, src/passwd.c: Do not
log to syslog when pw_update() or spw_update() fail.
* src/newusers.c: Do not log specific error message to stderr when
sgr_update() fails.
* src/pwconv.c: Remove duplicated definition of Prog.
2008-08-25 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
src/newgrp.c, src/passwd.c, src/su.c: Use the same stderr and
syslog warnings when the username cannot be determined.
* src/newgrp.c: Reuse the same stderr message for groups which do
not exist in the system.
2008-08-21 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Log errors while *_close to syslog.
2008-08-21 Nicolas François <nicolas.francois@centraliens.net>
* src/grpconv.c: Use Basename for the definition of Prog. Prog
needs a file visibility.
* src/grpunconv.c: Likewise.
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c: Do not exit on pw_unlock failures.
* src/grpconv.c, src/grpunconv.c, src/pwconv.c, src/pwunconv.c,
src/vipw.c: Open syslog with the right identification name.
* src/vipw.c: Log unlock errors to syslog.
* src/vipw.c: Log edits to syslog.
* src/chage.c, src/chfn.c, src/chsh.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmod.c, src/grpconv.c,
src/grpunconv.c, src/passwd.c, src/pwck.c, src/pwunconv.c,
src/useradd.c, src/usermod.c: Harmonize the syslog levels. Failure
to close or unlock are errors. Failure to open files are warnings.
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Open syslog with the right identification name.
* src/newusers.c: Mark the files as locked only if they are really
locked (i.e. if shadow is not enabled, the files are not locked).
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
support for long options --add (-a), --delete (-d),
--remove-password (-r), --restrict (-R), --administrators (-A),
and --members (-M)
* man/gpasswd.1.xml: Document the new long options.
* src/gpasswd.c: The sgrp structure is only used if SHADOWGRP is
defined.
2008-08-18 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Added function fail_exit(). Check failure to unlock
files. Report errors to stderr and syslog, but continue.
* src/grpconv.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.
2008-08-18 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c,
src/grpconv.c, src/grpunconv.c, src/newusers.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c: Harmonize the name
of the variables keeping the lock status, to match the shadow
library prefixes.
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c: In
case of a lock failure, indicate to the user that she can try
again later. Do not log to syslog.
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/passwd.c: For compatibility with other passwd version,
the --lock an --unlock options do not lock or unlock the user
account anymore. They only lock or unlock the user's password.
* man/passwd.1.xml: Document above change. Document how an account
can be locked and what a password lock means.
2008-08-15 Nicolas François <nicolas.francois@centraliens.net>
* man/groupadd.8.xml: Fix the regular expression for group policy.
The final $ character is optional.
* man/groupadd.8.xml: Likewise.
* man/groupadd.8.xml: Indicate the maximum size of usernames.
2008-08-15 Nicolas François <nicolas.francois@centraliens.net>
* man/po/pl.po: Fix typo in the Polish translation (see
http://bugs.debian.org/491460)
2008-08-13 Nicolas François <nicolas.francois@centraliens.net>
* man/pl/Makefile.am: Do not build the Polish translation of
login.1 and su.1 (not enough translated). See
http://bugs.debian.org/491460
2008-08-13 Nicolas François <nicolas.francois@centraliens.net>
* man/shadow.5.xml: Fix typo. The password must be changed before
the maximum number of days, not after.
2008-08-09 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Harmonize the unlock failure messages.
2008-08-09 23:33:26 +00:00
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Added fail_exit().
* src/pwck.c: Report failure to unlock files to stderr and
syslog.
* src/pwck.c: Report failure to sort to stderr, and exit with
E_CANTSORT.
* man/pwck.8.xml: Document return code 6 (E_CANTSORT).
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/vipw.c: Report failures to remove files to stderr.
* src/vipw.c: Report failures to unlock files to stderr.
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c: Added syslog support.
* src/groupmems.c: members() renamed display_members() to
avoid name clash with its members argument.
* src/groupmems.c: Report failure to unlock to syslog.
* src/groupmems.c: Harmonize error messages.
* src/groupmems.c: Report failures to write the new group file to
syslog (gr_close() failure).
* src/groupmems.c: Don't use fail_exit for non-failure exit.
2008-08-09 23:27:50 +00:00
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/chsh.c: Added fail_exit().
* src/chsh.c: Use fail_exit() instead of exit(), this avoid
calling closelog() every times.
* src/chsh.c: Ignore the return value or pam_end().
* src/chsh.c: Simplify the PAM error handling.
* src/chsh.c: Report failure to unlock files to stderr and
syslog.
2008-08-09 23:25:18 +00:00
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c: Added fail_exit().
* src/chpasswd.c: Added support for syslog.
* src/chpasswd.c: Report failure to unlock files to stderr and
syslog.
* src/chpasswd.c: Simplify the PAM error handling.
* src/chpasswd.c: Report failure during *_close() to syslog.
* src/chpasswd.c: Ignore the return value or pam_end().
2008-08-09 23:22:00 +00:00
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/chgpasswd.c: Added fail_exit().
* src/chgpasswd.c: Added support for syslog.
* src/chgpasswd.c: Report failure to unlock files to stderr and
syslog.
* src/chgpasswd.c: Simplify the PAM error handling.
* src/chgpasswd.c: Report failure during *_close() to syslog.
* src/chgpasswd.c: Ignore the return value or pam_end().
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c: Report failure to remove entries from group or
gshadow to stderr.
* src/userdel.c: Fail in case of failure during the write of a
user or group database. Report errors to syslog.
* src/userdel.c: Do not unlock non locked files.
* src/userdel.c: Report failure to unlock the passwd or shadow
file to stderr and syslog.
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Report failure to unlock the passwd or shadow
file to stderr and syslog.
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Report failure to unlock files to stderr and
syslog.
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Report failure to unlock files to stderr and
syslog.
* src/newusers.c: In case of error when files are open or closed,
indicate the failing file.
* src/newusers.c: Do not try to unlock the files manually since
this is done in fail_exit.
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Report failure to unlock the passwd or shadow file
to stderr and syslog.
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c: Report failure to unlock the passwd or shadow file
to stderr and syslog.
* src/pwconv.c: Report failure to chmod the backup file.
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
* src/grpunconv.c: Report failure to unlock the group or gshadow
files to stderr and syslog.
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c: Added fail_exit(). Check if the passwd file is
locked. Report failures to unlock to stderr and syslog.
* src/chfn.c: Is case of failure, use fail_exit() rather than
exit().
* src/chfn.c: Ignore the return value of pam_end().
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
Added *_dbname() functions to retrieve the name of the databases.
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
*_name() functions renamed *setname().
* src/grpck.c, src/pwck.c: Likewise.
* lib/groupio.h, lib/pwio.h, lib/sgroupio.h, lib/shadowio.h: Added
the name of the arguments to the prototypes.
* src/chage, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c:
Harmonize the erro & syslog messages in case of failure of the
*_lock(), *_open(), *_close(), *_unlock(), *_remove() functions.
* src/chgpasswd.c, src/chpasswd.c, src/usermod.c: Avoid
capitalized messages.
* src/chpasswd.c, src/useradd.c, src/usermod.c: Harmonize messages
in case of inexistent entries.
* src/usermod.c: Harmonize messages in case of already existing
entries.
* src/newusers.c, src/useradd.c: Simplify PAM error handling.
* src/useradd.c: Report failures to unlock files (stderr, syslog,
and audit). But do not fail (continue).
* src/useradd.c (open_files): Do not report to syslog & audit
failures to lock or open the databases. This might be harmless,
and the logs were not already informed that a change was
requested.
* src/usermod.c: It's not the account which is unlocked, but its
password.
2008-08-02 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Harmonize error & syslog messages.
* src/groupadd.c: Add logging to syslog & audit on lock/unlock
failures.
* src/groupadd.c: Only call gr_unlock() and sgr_unlock() in the
group or gshadow files were previously locked.
* src/groupadd.c: Make sure failures are reported to syslog/audit
after the change is mentioned.
* src/groupmod.c: Harmonize error & syslog messages.
* src/groupmod.c: Add logging to syslog & audit on lock/unlock
failures.
* src/groupmod.c: Make sure issues are reported to syslog or audit
after the change is mentioned.
* src/groupdel.c: Harmonize error & syslog messages.
* src/groupdel.c: Add logging to syslog & audit on lock/unlock
failures.
* src/groupdel.c: Only call gr_unlock() and sgr_unlock() in the
group or gshadow files were previously locked.
* src/groupdel.c: Simplify the handling of PAM errors.
2008-08-01 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Harmonize error & syslog messages.
* src/gpasswd.c: Warn and log to syslog and audit when group or
gshadow cannot be unlocked, but do not fail.
2008-08-01 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c, src/chsh.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/login.c, src/logoutd.c,
src/newgrp.c, src/newusers.c, src/passwd.c, src/pwck.c,
src/suauth.c, src/useradd.c, src/userdel.c, src/usermod.c,
src/vipw.c: Complete the switch from the `' quotation style to ''.
Do it also in SYSLOG messages. Quote some parameters. All this
permits to merge some messages.
2008-07-30 Lukáš Kuklínek <lkukline@redhat.com>
* src/groupmems.c: Only check if the adduser user exists when an
user is specified with -a.
2008-07-30 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Fix the groupmems' usage message. The -D option
is in fact -p.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Replace an if test by an else.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Ignore the return value of fputs().
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c (whoami): Make sure usr and grp are not NULL
before dereferencing them.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Use xstrdup() rather than strdup().
2008-07-27 22:30:12 +00:00
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Add parenthesis.
* src/groupmems.c: Avoid implicit conversion of pointers / chars to
booleans.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c: Allow everybody to list the users of a group.
This information is publicly available in /etc/group.
* NEWS, src/groupmems.c: Open /etc/group read only for the -l option.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* man/groupmems.8.xml: Sort options alphabetically.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c (check_perms): Simplify. Always call pam_end()
at the end of the authentication.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Add fail_exit() to remove the group lock file
in case of failure. Replace the calls to exit() by fail_exit().
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Reduce the number of checks. Isolate the
parameters setting and permissions checking.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Add functions process_flags() and check_perms()
from code of main().
* src/groupmems.c: Harmonize the failure message in case of PAM
failure with the other programs.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Remove isgroup(), which always returns TRUE.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Reuse the functions from libmisc/list.c to deal
with user lists. addtogroup() was broken when realloc() move the
memory area.
* src/groupmems.c: Report failures with the name of the program.
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: EXIT_READ_GROUP changed to EXIT_INVALID_GROUP.
* src/groupmems.c: EXIT_INVALID_USERNAME changed to EXIT_INVALID_USER.
2008-07-26 16:24:27 +00:00
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Really use booleans.
* src/groupmems.c: Change isroot() to a macro that returns a
boolean.
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Make sure the booleans are defined before using
them.
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Added Prog global variable to indicate the name
of the program in error messages.
2008-07-22 Lukáš Kuklínek <lkukline@redhat.com>
* NEWS, src/groupmems.c: Check if the user added to group actually
exist. RedHat bug #455603
* NEWS, src/groupmems.c: Check if the group exists in the group
local database (/etc/group). RedHat bug #456088
2008-07-21 22:45:49 +00:00
2008-07-22 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Fix getrange prototype.
2008-07-21 Seraphim Mellos <mellos@ceid.upatras.gr>
* README, NEWS, configure.in, lib/pam_defs.h, src/login.c: Add
support for OpenPAM.
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Ignore the return value of pam_end() before exiting.
* src/chage.c: Ignore return values of strftime(), snprintf(),
puts(), printf(), and fputs().
* src/chage.c: Check the return value of asctime().
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: Avoid assignments in comparison.
2008-07-11 22:20:43 +00:00
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
* ChangeLog, NEWS, src/login.c: Re-inject the changes from 4.1.2.1.
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Do not call usr_update() if it will have no
effects. This avoid checking if the user exists in the local passwd
file if not necessary, and thus allow to add LDAP users to local
groups. (The user is already checked against the system
configuration with getpwnam()). Thanks to Dan Kopecek.
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Split update_files() into update_lastlog() and
update_faillog(). Report errors (but don't fail) if the file
exist, but open(), lseek(), read(), write(), or close() fails.
* src/usermod.c: Add brackets and parenthesis.
* src/usermod.c: Ignore the return value of pam_end() before
exiting.
* src/usermod.c: Ignore the return value of strftime(),
snprintf(), and puts().
* src/usermod.c: Check the return value of gmtime() and asctime(),
and output the raw time_t on failures.
2008-07-11 20:23:07 +00:00
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/setugid.c: Add brackets.
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/env.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/env.c: Add brackets and parenthesis.
* libmisc/env.c: Ignore the return value of puts() and fputs().
* libmisc/env.c: Avoid multi-statements lines.
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/utmp.c: Add brackets and parenthesis.
* libmisc/utmp.c: Exit with the EXIT_FAILURE status code in case
of failure.
* libmisc/utmp.c: Avoid assignments in comparisons.
* lib/prototypes.h, libmisc/utmp.c: Change setutmp()'s prototype
to return an int because pututline() and pututxline() may fail.
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/audit_help.c: Added one string for translation.
* po/POTFILES.in: Added libmisc/audit_help.c,
libmisc/find_new_gid.c, libmisc/find_new_uid.c, libmisc/getlong.c,
libmisc/getrange.c, libmisc/xgetXXbyYY.c, and libmisc/yesno.c.
Removed libmisc/find_new_ids.c
2008-06-16 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: If the faillog file exist, warn in case of
failure when open(), lssek(), write() or close() fails when the
new user's faillog entry is reset.
* src/useradd.c: Ditto for the lastlog entry.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c: Add brackets and parenthesis.
* libmisc/limits.c: Avoid implicit conversion of pointers /
integers to booleans.
* libmisc/limits.c: Ignore the return value of umask(). We will
never return to the original umask.
* libmisc/limits.c: Avoid multi-statements lines.
* libmisc/limits.c: Added default to a switch(). Report invalid
limit strings to syslog.
* libmisc/limits.c: Ignore the return value of fclose().
/etc/limits is open read-only.
* libmisc/limits.c: Ignore the return value of fputs() and
sleep().
* libmisc/limits.c: Check the return value of nice() and
set_filesize_limit(), and report errors to syslog.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/ulimit.c, lib/prototypes.h: Return failures of
set_filesize_limit(). Change the prototype to return an int
instead of void.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Try to close the open file if a failure
occured during lseek(), read() or write().
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/log.c: Check return values. If lseek() failed, avoid
reading or writing at an unspecified location. Log to syslog in
case of failure.
* libmisc/log.c: Use the right casts.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_ids.c, libmisc/find_new_gid.c,
libmisc/find_new_uid.c, libmisc/Makefile.am, lib/prototypes.h:
Split find_new_ids.c into find_new_gid.c and find_new_uid.c to
ease the description of login.defs variables in the different
tools.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Ignore the return value of strftime() and
printf().
* libmisc/failure.c: Fix syslog call. The UID is not available.
User the username specified in the utmp/utmpx entry.
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Avoid implicit conversion of pointers to
booleans.
* lib/defines.h: Ignore return values of setlocale() except the
first call.
* lib/defines.h: Fix a splint observer warning by using an
intermediate variable (old_locale).
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Check return values. If lseek() failed, avoid
reading or writing at an unspecified location. Log to syslog in
case of failure when reading a faillog entry or writing in
faillog or btmp.
* libmisc/failure.c: Check if the file exist before opening it.
* libmisc/failure.c: Log failures of open() and close() when
necessary.
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Add the getrange() prototype.
* lib/prototypes.h: Fix the valid_field() prototype (does not
return an bool).
* lib/prototypes.h: Fix the valid() prototype (it does return a
bool).
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.c: Fix the getdef_ulong() prototype.
* lib/getdef.h: Fix the getdef_ulong() prototype.
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* src/lastlog.c: Use getrange to parse the range of users.
* src/lastlog.c: umin and umax do not need to be signed long. Use
an unsigned long which might be needed to parse a GID or UID. Add
the has_umin and has_umax to replace the -1 values.
* src/lastlog.c: Cast dates to time_t.
* src/lastlog.c: Prefix lastlog errors with "lastlog: ".
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getlong.c: Reset errno before calling strtol().
Otherwise, errno could be already set to ERANGE.
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/Makefile.am, libmisc/getrange.c: Added function to parse
a range (useful for lastlog).
2008-06-14 15:03:58 +00:00
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* src/chsh.c: <signal.h> is not needed.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Define AUDIT_NO_ID to (unsigned int) -1. This
value should be used when the ID should not be considered.
* lib/prototypes.h: Fix the prototype of do_rlogin() according to
earlier changes.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/shadow.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spwd.sp_flag.
* lib/shadow.c: Add brackets.
* lib/shadow.c: Avoid implicit conversion of pointers to
booleans.
* lib/shadow.c: The size argument of fgets is an int, not a
size_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: len should be typed ssize_t as it is the return
of read(), and is compared to 0. Cast to size_t when necessary.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_ids.c: Use getdef_ulong to retrieve UIDs/GIDs
from login.defs. Type constants to long integers.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: Use a bool when possible instead of int integers.
* lib/gshadow.c: Remove __setsgNIS() -never used).
* lib/gshadow.c: Avoid multi-statements lines.
* lib/gshadow.c: Avoid assignments in comparisons.
* lib/gshadow.c: ptr[nelem] is a string. Initialize it to NULL
instead of '\0'.
* lib/gshadow.c: Add brackets and parenthesis.
* lib/gshadow.c: The size argument of strncpy is a size_t and the
size argument of fgets is an int.
2008-06-13 21:39:24 +00:00
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Add brackets.
* lib/groupio.c: Make sure malloc receives a size_t.
* lib/groupio.c: Avoid multi-statements lines.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spwd.sp_flag.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.h, lib/getdef.c: Add getdef_ulong().
* lib/getdef.c: Added TODOs because of lack of error checking.
* lib/getdef.c: The size argument of fgets is an int, not a
size_t.
* lib/getdef.c: Avoid multi-statements lines.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/id.c: Make sure malloc receives a size_t.
* src/id.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/sulogin.c: Ignore the return value of signal().
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
defined.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/faillog.c: Ignore return value of time() when use with a
non NULL argument.
* src/faillog.c: Use a %lu format and cast number of days to
unsigned long integers.
* src/faillog.c: Cast dates to time_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Ignore the return value of signal().
* src/login.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
* src/login.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Add the arguments' names in the functions
prototypes.
* src/chage.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
* src/chage.c: print_date() received a time_t.
* src/chage.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spwent.sp_flag.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
* src/groupadd.c: Cast the parsed GID/UID to a gid_t/uid_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
* src/pwck.c: Cast number of days to a long integer.
* src/pwck.c: Use the SCALE macro instead of (24L * 3600L)
for the values to be set in /etc/shadow.
* src/pwck.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spent.sp_flag.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Ignore return value of time() when use with a
non NULL argument.
* src/passwd.c: Cast number of days to a long integer.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmod.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
* src/groupmod.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
* src/groupmod.c: Cast the parsed GID/UID to a gid_t/uid_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
* src/useradd.c: Cast the parsed GID/UID to a gid_t/uid_t.
* src/useradd.c: The size argument of fgets is an int, not a
size_t.
* src/useradd.c: Cast number of days to a long integer.
* src/useradd.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spent.sp_flag.
* src/useradd.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: fork() and waitpid() return a pid_t, not an int.
* src/su.c: Add brackets and parenthesis.
* src/su.c: Ignore the return value of signal().
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/expiry.c: Ignore the return value of signal().
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Fix the check for GID/UID validity.
* src/newusers.c: Comment why we use both getgrgid() and
gr_locate_gid().
* src/newusers.c: Cast the parsed GID/UID to a gid_t/uid_t.
* src/newusers.c: Cast the number of days to a long integer.
* src/newusers.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of spent.sp_flag.
* src/newusers.c: The size argument of fgets is an int, not a
size_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Cast dates to time_t, and number of days to a
long integer.
* src/usermod.c: Cast UIDs and GIDs to uid_t and gid_t after
checking the ranges.
* src/usermod.c: The ID argument of audit_logger is an unsigned
int.
* src/usermod.c: read() returns a ssize_t.
* src/usermod.c: Cast the return value of malloc and make sure it
receives a size_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/logoutd.c: Ignore return value of time() when use with a
non NULL argument.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of sp.sp_flag.
* src/pwconv.c: Cast number of days to a long integer.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: The ID argument of audit_logger is an unsigned
int.
* src/gpasswd.c: Ignore the return value of signal(). The signal
handlers are only changed for the last steps of gpasswd, and there
is no need to restore them.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c: The ID argument of audit_logger is an unsigned
int.
* src/userdel.c: fork() and wait() return a pid_t, not an int.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Use a %lu format and cast group and user IDs to
unsigned long integers.
* src/newgrp.c: The ID argument of audit_logger is an unsigned
int.
* src/newgrp.c: Ignore the return value of signal() (the signal
handlers are assumed to be the default one and are restored
later).
* src/newgrp.c: Do not checl if a pid_t is < 0, check if equal
to (pid_t)-1.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/isexpired.c: Cast number of days to a long integer.
* libmisc/isexpired.c: Add brackets and parenthesis.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c: Do not specify a size of arrays in the
prototypes.
* libmisc/copydir.c: Use a size_t for the length of strings.
* libmisc/copydir.c: Cast the return value of malloc().
* libmisc/copydir.c: The size argument of write() is a size_t.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pwd2spwd.c: Cast number of days to a long integer.
* libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of sp.sp_flag.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Include <config.h> since it uses the macro that
might be defined in this header file.
* lib/defines.h: Prefer checking if HAVE_LOCALE_H or ENABLE_NLS
are defined (rather than set to non 0).
* lib/defines.h: The dummy implementations of bindtextdomain() and
textdomain() should return a pointer. Return NULL instead of
/* empty */
* lib/defines.h: Define SHADOW_SP_FLAG_UNSET, to be used for the
initialization of sp_flag field of the shadow structures.
* lib/defines.h: Define LC_ALL, needed even if HAVE_LOCALE_H is
not defined.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/sulog.c: Ignore the return value of umask() when the
mask is restored.
* libmisc/sulog.c: Add brackets.
* libmisc/sulog.c: Ignore return value of time() when use with a
non NULL argument.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/log.c: Avoid assignments in comparisons.
* libmisc/log.c: Add brackets and parenthesis.
* libmisc/log.c: read() returns a ssize_t (note size_t).
* libmisc/log.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/log.c: Ignore return value of time() when use with a
non NULL argument.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/strtoday.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/strtoday.c: Add brackets and parenthesis.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Use a size_t for the size of strings instead of
unsigned int.
* libmisc/salt.c: Add brackets and parenthesis.
* libmisc/salt.c: Avoid assignments in comparisons.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/age.c: fork() and wait() return a pid_t, not an int.
* libmisc/age.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/age.c: Avoid assignments in comparisons.
* libmisc/age.c: Ignore the return value of printf(), puts(),
fputs() and fflush().
* libmisc/age.c: Add brackets and parenthesis.
* libmisc/age.c: Cast the return value of time() to long and
converted to a date.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/rlogin.c: The size argument of read() is a size_t.
Propagate this time to the callers (the get_remote_string() and
do_rlogin() functions).
* libmisc/rlogin.c: Add brackets and parenthesis.
* libmisc/rlogin.c: Avoid multi-statements lines.
* libmisc/rlogin.c: Avoid assignments in comparisons.
* libmisc/rlogin.c: Avoid implicit conversion of pointers to
booleans.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Avoid assignments in comparisons.
* libmisc/failure.c: read() returns a ssize_t.
* libmisc/failure.c: Add brackets and parenthesis.
* libmisc/failure.c: Ignore return value of time() when use with a
non NULL argument.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chowntty.c: Avoid assignments in comparisons.
* libmisc/chowntty.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/chowntty.c: Add brackets and parenthesis.
2008-06-13 18:24:37 +00:00
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/audit_help.c: Add brackets.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/addgrps.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/addgrps.c: Add brackets.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c: Avoid implicit conversion of pointers to
booleans.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/console.c, libmisc/hushed.c, libmisc/yesno.c,
libmisc/loginprompt.c, libmisc/ttytype.c, libmisc/tz.c,
src/login_nopam.c, src/chpasswd.c, src/chgpasswd.c, lib/port.c:
The size argument of fgets is an int, not a size_t.
* libmisc/loginprompt.c: Ignore the return value from signal()
when the signal handlers are restored.
* src/chpasswd.c: Cast the return value of time() to a long
integer.
* src/chpasswd.c: Use the SCALE macro instead of (24L * 3600L)
for the values to be set in /etc/shadow.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Use a bool when possible instead of int integers.
* src/pwck.c: Avoid implicit conversion of integers to booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Use a bool when possible instead of int integers.
* src/su.c: Add brackets and parenthesis.
* src/su.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/su.c: Ignore the return value of pam_end() before
exiting.
* src/su.c: Avoid assignments in comparisons.
* src/su.c: Avoid multi-statements lines.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, libmisc/valid.c: Change the prototype of
valid() to return a bool.
* libmisc/valid.c: Add parenthesis.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Add brackets and parenthesis.
* lib/commonio.c: Check the result of fgets().
* lib/commonio.c: Avoid implicit conversion of pointers to
booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Fix the prototypes to match earlier changes.
2008-06-10 20:01:55 +00:00
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* lib/nscd.c: Include defines.h.
* lib/nscd.c: Always warn when the nscd cache cannot be flushed.
* lib/nscd.c: Avoid assignments in comparisons.
* lib/nscd.c: Ignore the return value of fputs() when printing
errors.
2008-06-10 19:59:26 +00:00
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* lib/port.c: Add brackets and parenthesis.
* lib/port.c: Change isttytime() prototype to return a bool.
* lib/port.c: Ignore the return value of fclose () (file open
read-only).
* lib/port.c: Avoid multi-statements lines.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/id.c: Ignore the return value of fputs(), puts(), putchar(),
and printf().
* src/id.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/id.c: Add brackets and parenthesis.
* src/id.c: Avoid implicit conversion of pointers / integers
to booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/chsh.c: Use a bool when possible instead of int integers.
* src/chsh.c: restricted_shell() renamed is_restricted_shell().
check_shell() renamed shell_is_listed().
* src/chsh.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/chsh.c: Avoid implicit conversion of pointers / integers
to booleans.
* src/chsh.c: Ignore the return value of pam_end() before
exiting.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/grpunconv.c: Use a bool when possible instead of int
integers.
* src/grpunconv.c: Add brackets and parenthesis.
* src/grpunconv.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/grpunconv.c: Avoid implicit conversion of pointers / integers
to booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/sulogin.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/sulogin.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/sulogin.c: Avoid assignments in comparisons.
* src/sulogin.c: Ignore the return value of alarm().
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/groups.c: Use a bool when possible instead of int integers.
* src/groups.c: Add brackets and parenthesis.
* src/groups.c: Avoid implicit conversion of pointers / integers
to booleans.
* src/groups.c: Avoid assignments in comparisons.
* src/groups.c: Ignore the return value of putchar(), printf()
* src/groups.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/grpconv.c: Use a bool when possible instead of int integers.
* src/grpconv.c: Add brackets and parenthesis.
* src/grpconv.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/grpconv.c: Avoid implicit conversion of pointers / integers
to booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/faillog.c: Use a bool when possible instead of int integers.
* src/faillog.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/faillog.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/faillog.c: Add brackets and parenthesis.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Avoid multi-statements lines.
* src/login.c: Ignore the return value of pam_end() before
exiting.
* src/login.c: Use a bool when possible instead of int integers.
* src/login.c: Add brackets and parenthesis.
* src/login.c: Ignore the return values of fflush(), putchar(), puts().
* src/login.c: Ignore the return value of fclose() for read-only
files.
* src/login.c: Avoid assignments in comparisons.
* src/login.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/login.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Use a bool when possible instead of int integers.
* src/chage.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Use a bool when possible instead of int
integers.
* src/groupadd.c: Add brackets and parenthesis.
* src/groupadd.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/groupadd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/groupadd.c: Ignore the return value of pam_end() before
exiting.
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Use a bool when possible instead of int integers.
* src/pwck.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Use a bool when possible instead of int integers.
* src/passwd.c: Avoid assignments in comparisons.
* src/passwd.c: Add brackets and parenthesis.
* src/passwd.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
* src/passwd.c: Move the "context_t c" declaration at the
beginning check_selinux_access.
* src/passwd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmod.c: Use a bool when possible instead of int
integers.
* src/groupmod.c: Avoid assignments in comparisons.
* src/groupmod.c: Add brackets and parenthesis.
* src/groupmod.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/groupmod.c: Use a %lu format to print GIDs, and cast the GID
to (unsigned long int).
* src/groupmod.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/groupmod.c: Ignore the return value of pam_end() before
exiting.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Use a bool when possible instead of int integers.
* src/useradd.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/useradd.c: Add brackets and parenthesis.
* src/useradd.c: Avoid assignments in comparisons.
* src/useradd.c: Ignore the return value of fclose() for read-only
files.
* src/useradd.c: Ignore the return value of fflush() before
closing the files.
* src/useradd.c: Avoid multi-statements lines.
* src/useradd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/useradd.c: Ignore the return value of pam_end() before
exiting.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/vipw.c: Use a bool when possible instead of int integers.
* src/vipw.c: Ignore the return value of umask(), when the mask is
set again to the old value.
* src/vipw.c: Avoid implicit conversion of pointers / integers to
booleans.
* src/vipw.c: Add brackets and parenthesis.
* src/vipw.c: Avoid assignments in comparisons.
* src/vipw.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/vipw.c: Add missing termination of the longopts parameter
for getopt_long().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/chgpasswd.c: Use a bool when possible instead of int
integers.
* src/chgpasswd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/chgpasswd.c: Avoid implicit conversion of integers to
booleans.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: Use a bool when possible instead of int
integers.
* src/groupdel.c: Avoid implicit conversion of pointers / integers to
booleans.
* src/groupdel.c: Avoid assignments in comparisons.
* src/groupdel.c: Ignore the return value of pam_end() before
exiting.
* src/groupdel.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/expiry.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/expiry.c: Add brackets and parenthesis.
* src/expiry.c: Avoid assignments in comparisons.
* src/expiry.c: Avoid implicit conversion of pointers to booleans.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Use a bool when possible instead of int
integers.
* src/pwunconv.c: Add brackets and parenthesis.
* src/pwunconv.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/pwunconv.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/pwunconv.c: Avoid assignments in comparisons.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Use a bool when possible instead of int integers.
* src/usermod.c: Add brackets and parenthesis.
* src/usermod.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/usermod.c: Avoid assignments in comparisons.
* src/usermod.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/usermod.c: Ignore the return value of pam_end() before
exiting.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Move the declaration of option_index and
long_options before the blocks of code.
* src/groupmems.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/groupmems.c: Ignore the return value of pam_end() before
exiting.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c: Use a bool when possible instead of int integers.
* src/chfn.c: Avoid implicit conversion of integers / chars to
booleans.
* src/chfn.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/logoutd.c: Use a bool when possible instead of int integers.
* src/logoutd.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/logoutd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/logoutd.c: Add brackets and parenthesis.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c: Use a bool when possible instead of int
integers.
* src/chpasswd.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/chpasswd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c: Use a bool when possible instead of int integers.
* src/pwconv.c: Add brackets and parenthesis.
* src/pwconv.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/pwconv.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: Implement the -r, --system option.
* src/newusers.c: Use a bool when possible instead of int
integers.
* src/newusers.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/newusers.c: Ignore the return value of pam_end() before
exiting.
* src/newusers.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/newusers.c: Avoid multi-statements lines.
* src/newusers.c: Add brackets and parenthesis.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Use a bool when possible instead of int integers.
* src/gpasswd.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/gpasswd.c: Ignore the return value of putchar() and fflush()
before exiting.
* src/gpasswd.c: check_list() renamed is_valid_user_list(), and
return a bool.
* src/gpasswd.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Use a bool when possible instead of int integers.
* src/grpck.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/lastlog.c: Use a bool when possible instead of int integers.
* src/lastlog.c: Avoid implicit conversion of pointers / integers
/ chars to booleans.
* src/lastlog.c: Add brackets and parenthesis.
* src/lastlog.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c: Use a bool for the is_shadow_pwd, is_shadow_grp,
deleted_user_group, was_member, was_admin, and the
options' flags.
* src/userdel.c: Change path_prefix() prototype to return a bool.
* src/userdel.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/userdel.c: Ignore the return value from pam_end() since we
are exiting anyway just afterwards.
* src/userdel.c: Avoid implicit conversion of pointers /
integers / chars to booleans.
* src/userdel.c: Add brackets and parenthesis.
* src/userdel.c: Avoid assignments in comparisons.
* src/userdel.c: Do not ignore the return value of the *_unlock()
functions.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/login_nopam.c: Do not use the YES and NO macros. Use the
booleans true and false instead. Change the prototypes of
list_match(), user_match(), from_match(), and string_match()
accordingly. Also use booleans internally.
* src/login_nopam.c: Add brackets and parenthesis.
* src/login_nopam.c: Avoid implicit conversion of pointers /
integers / chars to booleans.
* src/login_nopam.c: Avoid assignments in comparisons.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Use a bool for is_newgrp, notfound, needspasswd,
initflag, and cflag.
* src/newgrp.c: Add brackets and parenthesis.
* src/newgrp.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
* src/newgrp.c: Avoid multi-statements lines.
* src/newgrp.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/newgrp.c: Avoid assignments in comparisons.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/list.c: Change is_on_list() prototype to return a bool.
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
prototypes to use a bool for their first argument (sys_user /
sys_group).
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/console.c: Change is_listed() prototype to return a bool.
The default parameter should also be a bool.
* libmisc/console.c: Add brackets and parenthesis.
* libmisc/console.c: Avoid assignments in comparisons.
* libmisc/console.c: Change console() prototype to return a bool.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetspent.c: Add brackets and parenthesis.
* lib/sgetspent.c: Avoid assignments in comparisons.
* lib/sgetspent.c: Avoid implicit conversion of pointers / chars
to booleans.
* lib/sgetspent.c: Avoid multi-statements lines.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetpwent.c: Avoid implicit conversion of pointers / chars to
booleans.
* lib/sgetpwent.c: Add brackets and parenthesis.
* lib/sgetpwent.c: Return NULL instead of 0.
* lib/sgetpwent.c: Do not check twice if fields[2] and fields[3]
are not empty.
2008-05-26 09:22:44 +00:00
* lib/sgetpwent.c: Avoid assignments in comparisons.
2008-05-26 08:59:54 +00:00
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getdate.y: abbrev is a bool.
* libmisc/getdate.y: Avoid implicit conversion of pointers / chars /
integers to booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Fix prototypes according to earlier changes
(usage of the bool type).
* lib/prototypes.h: Add the arguments' name to the prototypes.
2008-05-26 08:53:56 +00:00
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.h: Add protection against multiple inclusions.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/pwio.h: Add protection against multiple inclusions.
* lib/pwio.c: The changed, isopen, locked, and readonly fields
of the db are booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
* lib/shadowio.h: Add protection against multiple inclusions.
* lib/shadowio.c: The changed, isopen, locked, and readonly fields
of the db are booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgroupio.c: Avoid assignments in comparisons.
* lib/sgroupio.c: Add brackets.
* lib/sgroupio.c: Avoid implicit conversion of pointers / integers
to booleans.
* lib/sgroupio.c: The changed, isopen, locked, and readonly fields
of the db are booleans.
* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
* lib/sgroupio.h: Add protection against multiple inclusions.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: nis_used and nis_bound are booleans.
* lib/gshadow.c: Avoid implicit conversion of pointers / integers
to booleans.
* lib/gshadow.c: Avoid assignments in comparisons.
* lib/gshadow.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: The changed, isopen, locked, and readonly fields
of the db are booleans.
2008-05-26 08:35:13 +00:00
* lib/groupio.h: Add protection against multiple inclusion.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetgrent.c: Avoid implicit conversion of pointers / chars
to booleans.
* lib/sgetgrent.c: Avoid assignments in comparisons.
* lib/sgetgrent.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/encrypt.c: Avoid implicit conversion of pointers to
booleans.
* lib/encrypt.c: Add parenthesis.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/port.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
* lib/port.c: Avoid multiple statement on the same line.
* lib/port.c: Add brackets and parenthesis.
* lib/port.c: Avoid assignments in comparisons.
* lib/port.c: Fix typo comparision -> comparison (in comment).
2008-05-26 00:59:42 +00:00
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/fputsx.c: Add brackets.
* lib/fputsx.c: Avoid assignments in comparisons.
* lib/fputsx.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.h: commonio_entry.changed, commonio_db.changed,
commonio_db.isopen, commonio_db.locked, and commonio_db.readonly
are no booleans.
* lib/commonio.h: Include defines.h to get the definition of bool.
* lib/commonio.h: commonio_present returns a bool
* lib/commonio.c: Implement above changes.
* lib/commonio.c: add argument names in prototypes.
* lib/commonio.c: name_is_nis returns a bool.
* lib/commonio.c: nscd_need_reload is a bool.
* lib/commonio.c: Improve types (use size_t / pid_t when needed
instead of int).
* lib/commonio.c: Avoid assignments in comparisons.
* lib/commonio.c: Add brackets and parenthesis.
* lib/commonio.c: Avoid implicit conversion of pointers / integers
to booleans
* lib/commonio.c: The return values of utime is not checked on
purpose.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/isexpired.c: ARGSUSED is no more needed (shadow is
always supported).
* libmisc/isexpired.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/isexpired.c: Add brackets and parenthesis.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/sulog.c (sulog): The success argument is a bool.
* libmisc/sulog.c: The return values of fflush is not checked on
purpose.
* libmisc/sulog.c: Indicate that some return values should be
checked.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/ttytype.c: Avoid implicit conversion of pointers /
integers to booleans.
* libmisc/ttytype.c: Avoid assignments in comparisons.
* libmisc/ttytype.c: Add brackets and parenthesis.
* libmisc/ttytype.c: The return values of fclose is not checked on
purpose.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/mail.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/mail.c: Avoid assignments in comparisons.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/loginprompt.c: Avoid implicit conversion of pointers /
chars to booleans.
* libmisc/loginprompt.c: Add brackets.
* libmisc/loginprompt.c: Avoid assignments in comparisons.
* libmisc/loginprompt.c: The return values of fclose and fflush
are not checked on purpose.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/setupenv.c: Avoid implicit conversion of chars to
booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c: selinux_checked, selinux_enabled, and set_orig
are now booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/setugid.c (setup_uid_gid): The is_console argument is now
a bool.
* libmisc/setugid.c: Avoid implicit conversion of integers /
pointers to booleans.
* libmisc/setugid.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pam_pass.c (do_pam_passwd): The silent and
change_expired are no booleans instead of int.
* libmisc/pam_pass.c: The return value of pam_end is not checked
on purpose.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getlong.c: Avoid implicit conversion of pointers / chars
to booleans.
* libmisc/getlong.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/valid.c: Avoid implicit conversion of pointers / chars
to booleans.
* libmisc/valid.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/yesno.c: yes_or_no returns a bool instead of int.
* libmisc/yesno.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/yesno.c: The return value of fflush is not checked
on purpose.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/age.c: Avoid implicit conversion of integers to
booleans.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/rlogin.c: Avoid assignments in comparisons.
* libmisc/rlogin.c: Avoid implicit conversion of integers to
booleans.
* libmisc/rlogin.c: Add brackets.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c (failcheck): The failed argument is a bool.
2008-05-25 22:54:20 +00:00
* libmisc/failure.h: Likewise.
* libmisc/failure.c (too_many_failures): too_many_failures returns
a bool.
* libmisc/failure.c: Add notes about unchecked return values.
* libmisc/failure.c: Avoid assignments in comparisons.
* libmisc/failure.c: Add brackets.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/myname.c: Avoid assignments in comparisons.
* libmisc/myname.c: Avoid implicit conversion of pointers / chars
to booleans.
* libmisc/myname.c: Add brackets.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c (checkutmp): Change picky argument's type to
bool.
* libmisc/utmp.c: Use bool when possible (found_utmpx,
found_utmp).
* libmisc/utmp.c: Add note about unchecked return values.
2008-05-25 22:03:09 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/addgrps.c: Change type of added to bool.
* libmisc/addgrps.c: Avoid implicit conversion of pointers to
booleans.
2008-05-25 21:52:14 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/hushed.c: hushed returns a bool instead of int.
* libmisc/hushed.c: Avoid assignments in comparisons.
* libmisc/hushed.c (hushed): Change type of found to bool.
* libmisc/hushed.c: Add brackets.
* libmisc/hushed.c: Always check if the user or the shell is in
the file. Do not check the first character of the line first. This
is simpler and match better with the HUSHLOGIN_FILE documentation.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.h, lib/getdef.c: getdef_bool returns a bool instead
of int.
* lib/getdef.c: Change typo of def_loaded to bool.
* lib/getdef.c: Add brackets.
2008-05-25 21:52:14 +00:00
* lib/getdef.c: Avoid assignments in comparisons.
2008-05-25 21:33:38 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chowntty.c: is_my_tty returns a bool.
* libmisc/chowntty.c: Avoid implicit conversion of integers to
booleans.
* libmisc/chowntty.c: Add brackets.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chowndir.c: Avoid assignment in comparisons, implicit
comparison of integers to booleans.
* libmisc/chowndir.c: The return value of closedir is not checked
on purpose.
* libmisc/chowndir.c: Add brackets.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/chkname.h, libmisc/chkname.c: check_group_name (resp.
check_user_name) renamed to is_valid_user_name (resp.
is_valid_group_name). is_valid_user_name and is_valid_group_name
return a bool.
* src/grpck.c, src/newusers.c, src/usermod.c, src/useradd.c,
src/groupmod.c, src/pwck.c, src/groupadd.c: Use is_valid_user_name
and is_valid_group_name, following above change.
* libmisc/chkname.c: Avoid implicit conversion of chars to
booleans. Add brackets and parenthesis.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/xmalloc.c: Avoid implicit conversion of integers /
pointers to booleans.
* libmisc/xgetXXbyYY.c: Likewise.
2008-05-25 20:37:51 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* configure.in, lib/defines.h: Allow usage of booleans in the
source.
2008-05-25 20:30:45 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Allow --disable-man and --enable-man=no.
2008-07-11 22:20:43 +00:00
2008-06-26 Nicolas François <nicolas.francois@centraliens.net>
Prepare the 4.1.2.1 release
* NEWS: set the release date.
* man/po/*.po, po/*.po: Updated PO files.
* configure.in: Set the version to 4.1.2.1.
2008-06-26 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/login.c: Fix an "audit log injection" vulnerability in
login. This is similar to CVE-2008-1926 (util-linux-ng's login).
This vulnerability makes it easier for attackers to hide
activities by modifying portions of log events, e.g. by appending
an addr= statement to the login name.
* lib/prototypes.h: Added definition of AUDIT_NO_ID.
2008-05-24 23:03:24 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
Prepare the 4.1.2 release
* NEWS: set the release date.
* man/po/*.po, po/*.po: Updated PO files.
2008-05-24 23:15:47 +00:00
* configure.in: Set the version to 4.1.2.
2008-05-24 23:03:24 +00:00
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* po/Makevars, man/po/Makefile.in.in: Run msgmerge with
--previous. (This requires gettext >= 0.16)
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c (remove_tree): As we always use remove_tree
followed by rmdir to remove the directory itself, delete also the
root directory in remove_tree.
* src/userdel.c, src/usermod.c: Do not call rmdir after
remove_tree.
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c (remove_tree): Make sure unlink is successful
when removing files.
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pwdcheck.c: Simply passwd_check since it's never used
when configured with PAM support.
2008-05-24 13:08:58 +00:00
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
Fix compiler warnings:
* libmisc/audit_help.c: Include prototypes.h to get the prototype
of audit_help_open.
* libmisc/salt.c: Use booleans instead of negating integers.
* src/passwd.c: Declare the check_selinux_access prototype and
avoid name clashes (change_user -> changed_user; change_uid ->
changed_uid; access -> requested_access)
* libmisc/list.c: Avoid assignments in comparisons, assignments
with post increments (x++), use of integers as booleans, and
explicitly mark blocks with brackets.
* libmisc/fields.c: Likewise.
* libmisc/copydir.c: Likewise.
* libmisc/fields.c: Add comments.
* libmisc/copydir.c: Mark function whose return value is not
checked as such.
2008-05-24 13:08:58 +00:00
2008-05-23 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pam_pass.c: Use fputs rather than fprintf for constant
strings.
2008-05-21 Nicolas François <nicolas.francois@centraliens.net>
* man/login.1.xml: Indicate that login should be executed with
"exec login" if called from a shell.
2008-05-21 Nicolas François <nicolas.francois@centraliens.net>
* man/passwd.1.xml: Remove the advices for the choice of a good
password (they are debatable). Point to
http://en.wikipedia.org/wiki/Password_strength instead.
2008-05-20 13:34:06 +00:00
2008-05-20 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/salt.c (SHA_salt_size): Seed the RNG, and fix a
overflow. These caused the SHA salt size to always be 8 bytes,
instead of being in the 8-16 range. Thanks to Peter Vrabec
pvrabec@redhat.com for noticing.
* NEWS, libmisc/salt.c (SHA_salt_rounds): Seed the RNG with
seedRNG instead of srand, and fix the same overflow. This caused
the number of rounds to always be the smallest one.
2008-05-20 Nicolas François <nicolas.francois@centraliens.net>
* man/newusers.8.xml man/groupmems.8.xml man/groupdel.8.xml
man/useradd.8.xml man/groupadd.8.xml man/newgrp.1.xml man/sg.1.xml
man/chgpasswd.8.xml man/groupmod.8.xml: Tag the section which
require --enable-shadowgrp accordingly.
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.5.xml: SHA_CRYPT_MAX_ROUNDS and
SHA_CRYPT_MIN_ROUNDS can only exist if configured with
--with-sha-crypt.
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, man/useradd.8.xml: Document the -k, --skel option, and
update the -m, --create-home documentation.
2008-05-19 21:04:34 +00:00
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* man/useradd.8.xml: Sort options.
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.c: SHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
only exist if configured with --with-sha-crypt.
* man/login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml: Likewise.
2008-05-19 20:56:48 +00:00
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Document the section closed by #endif
2008-05-19 20:31:48 +00:00
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Fix formatting.
2008-05-19 19:43:24 +00:00
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, man/useradd.8.xml: Document the -r, --system option.
* NEWS, man/groupadd.8.xml: Document the -r, --system option.
* NEWS, man/newusers.8.xml: Document the -r, --system option.
* NEWS, man/newusers.8.xml: Document the -c, --crypt-method and
-s, --sha-rounds options.
2008-05-19 19:43:24 +00:00
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
Import Debian patch 487_passwd_chauthtok_failed_message
* libmisc/pam_pass.c: Be more verbose and indicate that the
password was not changed when pam_chauthtok fails (in addition to
the PAM error, which may not be comprehensible for the users).
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
Import Debian patch 434_login_stop_checking_args_after--
* NEWS, src/login.c (check_flags): Stop checking the arguments
after --. The later options will be sent to the shell, and do not
need to be checked.
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
* src/vipw.c, src/su.c, src/newgrp.c: Harmonize the children's
SIGSTOP handling. Raise the signal which stopped the child instead
of always SIGSTOP.
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
Import Debian patch 406_vipw_resume_properly.
Thanks to Dean Gaudet.
* NEWS, src/vipw.c: Resume properly after ^Z.
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.c, lib/lockpw.c, lib/utent.c, lib/sgetgrent.c,
lib/getdef.h, lib/pwauth.c, lib/sgetspent.c, lib/pwauth.h,
lib/port.c, lib/encrypt.c, lib/groupio.c, lib/shadowmem.c,
lib/port.h, lib/groupio.h, lib/groupmem.c, lib/exitcodes.h,
lib/gshadow.c, lib/gshadow_.h, lib/sgroupio.c, lib/sgroupio.h,
lib/shadowio.c, lib/pwio.c, lib/sgetpwent.c, lib/commonio.c,
lib/faillog.h, lib/shadowio.h, lib/pwio.h, lib/pam_defs.h,
lib/pwmem.c, lib/commonio.h, lib/shadow.c, lib/fputsx.c,
lib/prototypes.h, libmisc/xmalloc.c, libmisc/limits.c,
libmisc/entry.c, libmisc/console.c, libmisc/ulimit.c,
libmisc/xgetXXbyYY.c, libmisc/chkname.c, libmisc/pwd2spwd.c,
libmisc/xgetpwnam.c, libmisc/basename.c, libmisc/chkname.h,
libmisc/chowndir.c, libmisc/audit_help.c, libmisc/chowntty.c,
libmisc/hushed.c, libmisc/xgetpwuid.c, libmisc/getdate.h,
libmisc/addgrps.c, libmisc/xgetgrgid.c, libmisc/utmp.c,
libmisc/myname.c, libmisc/failure.c, libmisc/find_new_ids.c,
libmisc/env.c, libmisc/rlogin.c, libmisc/age.c, libmisc/failure.h,
libmisc/xgetgrnam.c, libmisc/yesno.c, libmisc/valid.c,
libmisc/getlong.c, libmisc/obscure.c, libmisc/pam_pass.c,
libmisc/motd.c, libmisc/salt.c, libmisc/setugid.c,
libmisc/fields.c, libmisc/xgetspnam.c, libmisc/shell.c,
libmisc/copydir.c, libmisc/setupenv.c, libmisc/strtoday.c,
libmisc/loginprompt.c, libmisc/list.c, libmisc/pwd_init.c,
libmisc/log.c, libmisc/mail.c, libmisc/ttytype.c,
libmisc/pwdcheck.c, libmisc/sub.c, libmisc/sulog.c,
libmisc/isexpired.c, libmisc/tz.c, src/newgrp.c, src/userdel.c,
src/lastlog.c, src/grpck.c, src/gpasswd.c, src/newusers.c,
src/pwconv.c, src/chpasswd.c, src/logoutd.c, src/chfn.c,
src/groupmems.c, src/usermod.c, src/pwunconv.c, src/expiry.c,
src/groupdel.c, src/chgpasswd.c, src/vipw.c, src/useradd.c,
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c,
src/groupadd.c, src/nologin.c, src/chage.c, src/login.c,
src/suauth.c, src/faillog.c, src/grpconv.c, src/groups.c,
src/sulogin.c, src/grpunconv.c, src/chsh.c, src/id.c: Make sure
every source files are distributed with a copyright and license.
Files with no license use the default 3-clauses BSD license. The
copyright were mostly not recorded; they were updated according to
the Changelog. "Julianne Frances Haugh and contributors" changed
to "copyright holders and contributors".
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/sulog.c: If the SULOG_FILE does not exist when an
su session is logged, make sure the file is created with group
root, instead of using the group of the caller.
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/fields.c, src/chfn.c, man/chfn.1.xml: Allow
non-US-ASCII characters in the GECOS fields ("name", "room
number", and "other info" fields).
2008-04-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newgrp.c: Fix compilation failure when compiled with
audit support. Thanks to Mike Frysinger for reporting it.
2008-04-16 Nicolas François <nicolas.francois@centraliens.net>
Ensure that getpwent() is used in setpwent(), getpwent(),
endpwend() sequences (ditto for getgrent(), getspent(), and
getsgent()). The only real (minor) issue was in login, which kept
the passwd file open.
* libmisc/entry.c: Remove unneeded setspent() and endspent() (only
getspnam is called in the middle).
* libmisc/find_new_ids.c: Make sure to close the password and
group files with endpwent() and endgrent().
* libmisc/pwdcheck.c: Remove unneeded endspent() (only getspnam()
is called before).
* src/lastlog.c, src/passwd.c, src/groupmod.c, src/faillog.c,
src/groups.c: Make sure to close
the password file with endpwent().
* src/login.c: Remove unneeded setpwent() (only xgetpwnam is
called before).
* src/login.c, src/newgrp.c: Fix typos in comments.
2008-04-16 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, configure.in: Fix the detection of the audit, pam, and
selinux. Fail if the feature is requested but the library (or
header file) could not be found. If nothing is specified, enable
the feature only if we can find the library (or header file).
* configure.in: Document --with-selinux as "yes if found" rather
than "autodetected" for consistency with other options.
2008-04-04 Mark Rosenstand <mark@borkware.net>
* NEWS, etc/pam.d/Makefile.am: Add chfn, chsh, and userdel to
$(pamd_files). Remove the duplicate useradd. And sort
alphabetically.
2008-04-04 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Prepare next release, 4.1.2.
2008-04-02 21:55:27 +00:00
2008-04-02 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, configure.in: Prepare release 4.1.1
* NEWS: Fix the release date of 4.1.0. Was in 2007, not 2008.
2008-04-02 Nicolas François <nicolas.francois@centraliens.net>
* po/fr.po: Update according to the file under review.
Thanks to Jean-Luc Coulon.
2008-04-01 19:01:16 +00:00
2008-04-01 Holger Wansing <linux@wansing-online.de>
* po/de.po: updated to 431t
2008-03-31 17:54:52 +00:00
2008-03-31 Piarres Beobide <pi+debian@beobide.net>
* po/eu.po: updated to 431t
2008-03-30 Leandro Azevedo <leorock182@gmail.com>
* po/pt_BR.po: updated to 360t71f
2008-03-30 12:18:40 +00:00
2008-03-30 Mehmet Türker <mturker@innova.com.tr>
* po/tr.po: updated to 431t
2008-03-30 12:06:33 +00:00
2008-03-30 Clytie Siddall <clytie@riverland.net.au>
* po/vi.po: updated to 431t
2008-03-30 Daniel Nylander <yeager@ubuntu.com>
* po/sv.po: updated to 431t
2008-03-29 helix84 <helix84@centrum.sk>
* po/sk.po: updated to 431t
2008-03-27 18:54:34 +00:00
2008-03-27 Danilo Piazzalunga <danilopiazza@gmail.com>
* po/it.po: updated to 431t
2008-03-26 Nicolas François <nicolas.francois@centraliens.net>
* TODO: Added entries regarding SE Linux.
2008-03-26 Russell Coker <russell@coker.com.au>
* src/passwd.c, NEWS: Make SE Linux tests more strict, when the
real UID is 0 SE Linux checks will be performed.
2008-03-24 18:34:04 +00:00
2008-03-24 Yuri Kozlov <kozlov.y@gmail.com>
* po/ru.po: updated to 431t
2008-03-23 08:39:58 +00:00
2008-03-23 Miguel Figueiredo <elmig@debianpt.org>
* po/pt.po: updated to 431t
2008-03-21 Changwoo Ryu <cwryu@debian.org>
* po/ko.po: updated to 431t
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.5.xml: Fix manpages generation. The SYS_GID_MAX
and SYS_UID_MAX entities were not defined.
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
* src/faillog.c: Fix minor compilation warning (assignment used as
a comparison).
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, src/login.c: login_access() is used in
src/login.c, and defined in src/login_nopam.c (which lacks a
prototype). Move its prototype from src/login.c to
lib/prototypes.h.
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c, src/groupmod.c: Compilation fix. gshadow_locked
should only be used if SHADOWGRP is defined.
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Fix some warnings. compare_members_lists() is only
used if SHADOWGRP is defined.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
files are unlocked on exit. Unlock locked files in fail_exit().
Prefer fail_exit() over exit().
* NEWS, src/groupmod.c: When the GID of a group is changed, update
also the GID of the passwd entries of the users whose primary
group is the group being modified.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c (commonio_remove): Fail when the name to be
removed is used by different entries (like commonio_update does).
* NEWS: This fix the behavior of groupdel when the system is not
configured to support split group but different group entries
have the name of the group to be deleted.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/useradd.c: Make sure the passwd, group, shadow, and
gshadow files are unlocked on exit. Unlock locked files in
fail_exit(). Prefer fail_exit() over exit().
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupdel.c: Make sure the group, and gshadow files are
unlocked on exit. Add function fail_exit(). Use fail_exit()
instead of exit().
* src/groupdel.c: Fail immediately instead of increasing errors.
Better handling of error cases, like locked group or gshadow file.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: Make sure the passwd, group, shadow, and
gshadow files are unlocked on exit. Add function fail_exit(). Use
fail_exit() instead of exit().
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/gpasswd.c: Make sure the group and gshadow files are
unlocked on exit. Add function fail_exit(). Use fail_exit()
instead of exit().
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupdel.c: Do not rewrite the group and gshadow file
in case of error.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: Do not log that the group was deleted if an
error occurred.
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupdel.c: Do not raise an error if the group does
not exist in the gshadow file.
2008-03-08 16:05:30 +00:00
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* etc/login.defs: Document MAX_MEMBERS_PER_GROUP.
2008-03-07 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Add missing end of line in message.
* src/newgrp.c: Add audit events for the authentication
(AUDIT_GRP_AUTH). Thansk to Peter Vrabec.
2008-03-05 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/faillog.c: Only reset the entries of existing users
with faillog -r (not all numeric IDs starting from 0). Thanks to
Peter Vrabec.
2008-03-05 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Fix typo. One "can't open" message is a "can't
lock".
2008-02-26 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: When a password is moved to the gshadow file, use
"x" instead of "x" to indicate that the password is shadowed
(consistency with grpconv).
2008-02-26 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Fix failures when the gshadow file is not present. Thanks
to Christian Henz (http://bugs.debian.org/467488)
* src/gpasswd.c (get_group): Do not fail if gshadow is not present. Just use
the group file and set the grent structure
* src/gpasswd.c (check_perms): The permissions should be checked
using both the gshadow and group file. Add a <struct group *>
parameter, and check if the gshadow file exists (is_shadowgrp).
* src/gpasswd.c (main): Do not use sgent.sg_mem or sgent.sg_adm if
the gshadow file is not present (sgent is not initialized in that
case). The fields of sgent can be set, but not used.
2008-02-26 18:59:28 +00:00
2008-02-26 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Fix typo in comment.
* src/gpasswd.c: Move comment regarding FIRST_MEMBER_IS_ADMIN to
where it belongs.
* src/gpasswd.c: Indicate the end of the #ifdef FIRST_MEMBER_IS_ADMIN
section.
2008-02-25 Nicolas François <nicolas.francois@centraliens.net>
* man/po/Makefile.in.in: Use --previous when merging PO files of
the manpages.
2008-02-25 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.d/SYS_UID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
Document new variables.
* man/newusers.8.xml, man/login.defs.5.xml,
man/login.defs.d/GID_MAX.xml, man/login.defs.d/UID_MAX.xml:
newusers uses now the GID_MAX, GID_MIN, UID_MAX, UID_MIN,
SYS_GID_MAX, SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN variables.
* man/groupadd.8.xml, man/login.defs.5.xml: groupadd uses now the
SYS_GID_MAX, and SYS_GID_MIN variables.
* man/login.defs.5.xml: useradd uses now the SYS_GID_MAX,
SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN variables.
* man/Makefile.am: Add the new XML documentation files to EXTRA_DIST.
2008-02-25 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.c: Added missing SYS_GID_MAX, SYS_GID_MIN,
SYS_UID_MAX, and SYS_UID_MIN.
2008-02-25 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/useradd.c, man/useradd.8.xml: Added options
--user-group (-U, Uflg) and --no-user-group (-N, Nflg) to replace
nflg.
* man/login.defs.d/USERGROUPS_ENAB.xml: useradd now also uses
USERGROUPS_ENAB.
2008-02-19 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmod.c: Add missing 'p' to the getopt_long's optstring.
2008-02-19 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Add missing 'p' to the getopt_long's optstring.
* src/groupadd.c: Fix --non-unique's has_arg field to no_argument
instead of required_argument.
* src/groupadd.c: Add missing -p, --password description to the
Usage message.
2008-02-19 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, etc/login.defs: Set GID_MIN to the same value as UID_MIN
by default (1000).
* NEWS, etc/login.defs: Added variables SYS_UID_MIN (100),
SYS_UID_MAX (999), SYS_GID_MIN (100), SYS_GID_MAX (999) for system
accounts.
* libmisc/find_new_ids.c: Added support for system accounts in
find_new_uid() and find_new_gid().
* NEWS, src/newusers.c, src/useradd.c, src/groupadd.c: Added new
option -r, --system for system accounts in useradd, groupadd, and
newusers.
2008-02-18 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmems.c: Fix buffer overflow when adding an user
to a group. Thanks to Peter Vrabec.
2008-02-14 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, etc/useradd: Change the default HOME directory in
/etc/default/useradd according FHS (/home instead of /home/users).
This fixes Alioth's bug #310559. Thanks to Dale E. Edmons.
2008-02-14 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newgrp.c: Use the correct AUDIT_CHGRP_ID event instead of
AUDIT_USER_START, when changing the user space group ID with
newgrp or sg. Thanks to sgrubb@redhat.com for the patch.
2008-02-10 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Reset oflg with uflg if the new UID is equal to
the old one.
* src/usermod.c: Reset mflg with dflg if the new home directory is
the same as the old one.
2008-02-10 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/usermod.c: Fix the handling of -a when a user is being
renamed (with -l). The new name of the user was used for the new
supplementary groups, but not in the existing ones.
2008-02-10 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Set the shadow's password instead of the
passwd's password. Fix wrong cut&paste.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Use a function to convert the dates from
/etc/shadow to human readable dates.
* src/usermod.c: Really log the expiration date change as human
readable strings instead of integers.
* src/usermod.c: No need to check audit_fd, audit_logger() will
take care of this.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Do not translate the fromhost variable. It is
always used for syslog messages.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, lib/defines.h: Switch to the C locale before sending
messages to syslog. The messages sent by shadow were not
translated, but error messages from PAM returned by pam_strerror()
were translated in the users's locale.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: newusers will behave more like useradd.
* src/newusers.c: The user's ID must be found before the group ID
to mimic useradd's behavior choices of UID and GID.
* src/newusers.c: Reuse the generic find_new_uid() and
find_new_gid() functions. This permits to respect the
UID_MIN/UID_MAX and GID_MIN/GID_MAX variables, should
* src/newusers.c: Check if the user or group exist using the
external databases (with the libc getpwnam/getgrnam functions).
Refuse to update an user which exist in an external database but
does not exist in the local database.
* src/newusers.c: Check the usernames and groupnames with
check_user_name() and check_group_name()
* src/newusers.c: Use isdigit() for readability.
* src/newusers.c: Check if numerical IDs are valid (no remaining
chars).
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: Fix the support for the NONE crypt method.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Fix shadow group support (the list of admins was
not defined; it is now set to an empty list).
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/salt.c: Do not seed the random number generator
each time, and use the time in microseconds to avoid having the
same salt for different passwords generated in the same second.
This permits to avoid using the same salt for different passwords
in newusers.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
* lib/pwio.c, lib/pwio.h: New function to find an user by
its UID on the local database.
* lib/groupio.c, lib/groupio.h: New function to find a group by
its GID on the local database.
* libmisc/find_new_ids.c, lib/prototypes.h: Add new generic
functions to find the next user or group ID available:
find_new_uid() and find_new_gid(). They work the same way as the
functions with the same name of useradd or groupadd, except that
they check in the local database to make sure an ID was not
reserved in an uncommitted change (this is needed to be used in
newusers), they report a status instead of calling exit(), and
they can receive a preferred ID. They should later support system
IDs. This should be a little bit slower, but not too much (if the
database is not open the checks against the local database will
exit immediately, and if it is already open, all the checks will be
done regarding the data in memory).
* po/POTFILES.in: The new libmisc/find_new_ids.c file contains
translatable strings.
* libmisc/Makefile.am: Add libmisc/find_new_ids.c to the sources
of the libmisc library.
* src/useradd.c, src/groupadd.c: Use the find_new_uid() and
find_new_gid() from the library instead of the local functions.
2008-02-02 17:20:42 +00:00
2008-02-02 Nicolas François <nicolas.francois@centraliens.net>
* po/*.po: Updated PO files.
* libmisc/age.c, libmisc/yesno.c, src/lastlog.c, src/grpck.c,
src/chfn.c, src/passwd.c, src/chage.c, src/login.c, src/sulogin.c,
src/chsh.c: Fix call to puts (remove end of line, or use fputs).
* po/*.po: Unfuzzy PO files according to above change.
2008-02-02 17:20:42 +00:00
2008-01-26 Nicolas François <nicolas.francois@centraliens.net>
Fix build failures with --disable-shadowgrp. Thanks to Jürgen
Daubert for the patch.
* libmisc/salt.c: Include <stdio.h>, needed for stderr and printf
functions.
* lib/encrypt.c: Include <stdio.h>, needed for perror, stderr and
printf functions
* src/usermod.c: sgr_locked exists only if SHADOWGRP is defined.
* src/chgpasswd.c: Only check is the gshadow file exists if
SHADOWGRP is defined.
2008-01-24 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c, src/chfn.c, src/chage.c, src/chsh.c, src/grpck.c,
src/vipw.c, src/pwck.c, src/sulogin.c, src/newgrp.c,
src/userdel.c, src/lastlog.c, src/groupmems.c, src/usermod.c,
src/expiry.c, src/groupdel.c, src/useradd.c, src/su.c,
src/groupmod.c, src/passwd.c, src/groupadd.c, src/login.c,
src/suauth.c, src/faillog.c, src/id.c, libmisc/limits.c,
libmisc/addgrps.c, libmisc/env.c, libmisc/age.c, libmisc/yesno.c,
lib/getdef.c: Replace printf by puts for fixed strings. This would
avoid issues caused by formats introduced in translated strings.
2008-01-23 22:31:38 +00:00
2008-01-23 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Strings improvement s/can't get unique/no more
available/.
2008-01-23 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/usermod.c: Check that the new fields set with -u, -s,
-l, -g, -f, -e, -d, and -c differ from the old ones. If a
requested new value is equal to the old one, no changes will
be performed for that field. If no fields are changed, usermod
will exist successfully with a warning. This avoids logging
changes to syslog when there are actually no changes.
2008-01-23 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Always define user_newcomment, user_newshell,
user_newexpire, and user_newinactive. It is more simple to always
have user_<x> as the old field, and user_new<x> as the new field
(even if the field did not change) instead of changing the
algorithm depending on WITH_AUDIT.
2008-01-23 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: user_newname can only be used in WITH_AUDIT code
or when lflg is set. This issue was introduced in the code
refactoring of usermod.
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Fix typo in comment: s/find_new_uid/find_new_gid/
2008-01-22 22:57:55 +00:00
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: s/gid/GID/ in message string.
* src/useradd.c: Set this string for translation.
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* man/grpck.8.xml: Fix typo. Remove "the" from "All entries in the
<filename></filename> are checked [...]"
* man/grpck.8.xml: Conditionally include the parts mentioning the
gshadow file (based on SHADOWGRP).
* man/grpck.8.xml: Add reference to the gshadow(5) manpage
(conditionally included).
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* man/grpck.8.xml, man/pwck.8.xml: Indicate that the shadow
parameter is optional (i.e. a passwd file can be specified without
a shadow file, and the group file can be specified without the
gshadow file).
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* man/grpck.8.xml: Document the options with a list of options,
as in the pwck(8) manpage.
2008-01-22 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newgrp.c: Fix segfault when an user returns to an
unknown GID (either the user was deleted during the user's newgrp
session or the user's passwd entry referenced an invalid group).
Add a syslog warning in that case.
* src/newgrp.c: Add an end of line when reporting an invalid
password.
2008-01-12 Nicolas François <nicolas.francois@centraliens.net>
* 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.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Avoid setting the password to a const empty
string, but set the first char to \0. This avoids a warning.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Add prototype for l64a(), gensalt(),
SHA_salt_size(), and SHA_salt_rounds().
* libmisc/salt.c: l64a() and gensalt() are static.
* libmisc/salt.c: The `meth' parameter of crypt_make_salt() is a
const. (ditto for the method variable).
* libmisc/salt.c: SHA_salt_rounds returns a const string.
* libmisc/salt.c: Avoid warnings with cast of random() to double.
* libmisc/salt.c: Replace rand() by random().
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
skey and md libraries...
* src/Makefile.am: ...Specify for each binary which library is
required. skey and md are required for the binaries with
authentication of the user (chfn, chsh, login, passwd, su). intl
is required for all. mcrypt is required for user (chfn, chsh,
login, passwd, su, sulogin) and group (newgrp, gpasswd)
authentication and for the creation of passwords (chpasswd,
chgpasswd, gpasswd, newusers, passwd).
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/nscd.c, lib/nscd.h: Set the service parameter of
nscd_flush_cache() to const. This avoids a lot of warnings.
* lib/nscd.c: Include "nscd.h" to avoid inconsistent prototypes.
2008-01-06 13:49:00 +00:00
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/encrypt.c: Set the method string as a constant string.
2008-01-06 13:42:47 +00:00
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/port.c: Assume <errno.h> declares errno.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* man/po/fr.po: Fix typo: s/rend compte indiqué/rend le compte
indiqué/
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/suauth.c: Remove prototype of check_su_auth(). It is
redundant with prototypes.h.
* src/suauth.c: isgrp() is static.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c: Tag the `old' parameter of palindrome(),
similar(), and simple() as unused.
* libmisc/loginprompt.c: Tag the `sig' parameter of login_exit()
as unused.
* src/expiry.c: Tag the `sig' parameter of catch_signals() as
unused.
* src/su.c: Tag the `sig' parameter of catch_signals() as unused.
* src/su.c: Add int parameter to the prototype of oldsig().
* src/login.c: Tag the `sig' parameter of alarm_handler() as
unused.
* src/sulogin.c: Tag the `sig' parameter of catch_signals() as
unused.
* libmisc/getdate.y: Tag the `string' parameter of yyerror() as
unused.
* libmisc/getdate.y: The string provided to yyerror() is const.
* libmisc/getdate.y: Fix the prototypes of yylex() and yyerror().
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Remove teh macro definition of SETXXENT_TYPE,
SETXXENT_RET, and SETXXENT_TEST. They were used by the now
removed pwent.c and grent.c.
* lib/defines.h: Remove the definition of PASSWD_PAG_FILE,
GROUP_PAG_FILE, SHADOW_PAG_FILE, and SGROUP_PAG_FILE. They are
never used.
* lib/defines.h: Don't include "snprintf.h". The file does not
exist in shadow.
* lib/defines.h: Add new macro unused to tag unused parameters.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/groupmems.c: Assume optarg and optind are
declared in <getopt.h>.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Remove the pw_name argument of new_pw_passwd. Use
the user_newname global variable instead. This avoid using a
parameter with the same name as a function.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Removed unused gid parameter of syslog_sg().
* src/newgrp.c: The loginname and tty buffers are never changed.
Add the const qualifier.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c, src/chgpasswd.c: The crypt_method string always
points to a constant string. Add the const qualifier.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Remove prototype of l64a() (not used in
pwunconv).
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* src/login_nopam.c: Use an ANSI prototype for resolve_hostname()
instead of K&R prototype.
* src/login_nopam.c: Fix the prototypes of list_match(),
user_match(), from_match(), string_match(). There were no
parameters in the prototypes.
* src/login_nopam.c: Fix the prototypes of the function parameter
match_fn of list_match().
2008-01-06 12:02:24 +00:00
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c: Remove the src parameter of copy_special().
The entry's information are taken from the stat structure.
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/console.c, libmisc/ulimit.c, lib/sgetgrent.c,
lib/sgetpwent.c: Include "prototypes.h" to make
sure the exported prototypes are the ones used for the definition
of functions.
* lib/prototypes.h: Added prototypes for __gr_del_entry(),
__gr_get_db(), __gr_get_head(), __gr_set_changed(), __gr_dup(),
__pw_del_entry(), __pw_get_db(), __pw_get_head(), __pw_dup(),
sgetgrent(), sgetpwent(), __sgr_del_entry(), __sgr_dup(),
__sgr_get_head(), __sgr_set_changed(), __spw_get_head(),
__spw_del_entry(), __spw_dup().
* lib/prototypes.h: Removed prototype for is_listed().
* lib/prototypes.h: Added name of the check_su_auth()'s parameters.
* lib/groupio.h: Removed prototypes for __gr_dup() and
__gr_set_changed().
* lib/sgroupio.c: Removed prototypes for putsgent(), sgetsgent(),
and __gr_get_db().
* lib/sgroupio.h: Removed prototypes for __sgr_dup() and
__sgr_set_changed().
* lib/shadowio.c: Removed prototype for __pw_get_db().
* lib/pwio.c: Removed prototype for sgetpwent() and putpwent().
* lib/shadowio.h: Removed prototypes for __spw_dup() and
__spw_set_changed().
* lib/pwio.h: Removed prototypes for __pw_dup() and
__pw_set_changed().
* lib/commonio.h: Add protection against multiple inclusions.
* lib/prototypes.h: Include commonio.h (needed for the
__xx_del_entry() functions).
* src/grpck.c: Remove prototypes for __gr_del_entry(),
__gr_get_head(), __sgr_del_entry(), and __sgr_get_head().
* src/pwck.c: Remove prototypes for __pw_del_entry(),
__pw_get_head(), __spw_del_entry(), and __spw_get_head().
2008-01-06 13:38:16 +00:00
* lib/groupio.c: Remove prototype for sgetgrent().
* lib/groupio.c: Add the name of the parameters for
merge_group_entries() and split_groups().
* lib/groupio.h: Remove prototypes for __gr_dup() and
__gr_set_changed().
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* man/groupadd.8.xml, man/groupmod.8.xml: Add documentation for
the new --password options.
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Fix find_new_gid() prototype. Add a void
parameter.
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Add the dolastlog() prototype.
* lib/prototypes.h: Typo: login.c -> loginprompt.c
* src/login.c: Remove declaration of dolastlog().
* lib/prototypes.h: Include <lastlog.h> for the declaration of
struct lastlog.
2008-01-05 17:22:38 +00:00
* lib/prototypes.h: Remove old comments in the header.
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pwdcheck.c: Do not include <pwd.h>. Include <shadow.h>
and "pwauth.h" only when compiled without PAM support.
* src/chfn.c, src/chsh.c: Do not include <shadow.h>
* lib/commonio.c: Do not include <shadow.h>. Do not include
<pwd.h>. Include "nscd.h" instead of <nscd.h>.
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Do not check if shadow.h exist, but make sure it
exists.
* libmisc/pwdcheck.c, src/chfn.c, src/chsh.c, lib/defines.h,
lib/shadowmem.c, lib/shadowio.c, lib/commonio.c:
HAVE_SHADOW_H is no more needed (shadow.h should always exist).
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Remove prototype of putgrent(), add parameter's
name of sgetgrent().
* lib/prototypes.h: Fix the do_pam_passwd() prototype (it returns
void).
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/groupmod.c, src/groupadd.c: Add option --password to
groupadd and groupmod (similar to useradd and usermod).
2008-01-05 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: grent.c does not exist anymore. Remove the
putgrent prototype.
* lib/prototypes.h: "shadowio.h" was included for the definition
of the spwd structure. Replace this include by <shadow.h>
* libmisc/xmalloc.c, libmisc/utmp.c, libmisc/strtoday.c,
libmisc/pwd_init.c, libmisc/tz.c, lib/port.c, lib/fputsx.c,
libmisc/pam_pass.c, libmisc/log.c: Include "prototypes.h" to make
sure the exported prototypes are the ones used for the definition
of functions.
* libmisc/console.c: Define is_listed() as static and add its
prototype.
* libmisc/xgetXXbyYY.c, libmisc/yesno.c: Include config.h as a
system include, as recommended by the autoconf documentation.
* src/chage.c: Define isnum() as static and add its prototype.
2008-01-05 13:49:32 +00:00
* libmisc/xgetspnam.c: Add missing include "shadowio.h". (This was
OK as long as prototypes.h included this file.)
* src/nologin.c: Make a proper prototype for the main() function
declaration. (add void)
* src/login.c: login_prompt is the name of a function, use
loginprompt for the internal variable.
* src/chsh.c: loginsh is a global variable, use newshell for the
update_shell()'s parameter.
* lib/gshadow.c: The prototypes of fgetsx() and fputsx() are
already defined in prototypes.h. Remove the declaration of these
functions.
* lib/gshdow.c: list() is an external function. DO not shadow it
with a static function. The internal list() was renamed
build_list().
* lib/commonio.c: stat shadows another stat variable. Remove this
variable, and directly check the result of getfscreatecon().
* libmisc/utmp.c: Remove the declaration of getutent(),
getutline(), setutent(), and endutent() which are declared in
<utmp.h>
2008-01-01 23:45:44 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Remove duplicate logging to syslog.
2008-01-01 23:07:55 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Avoid assignments in conditionals.
2008-01-01 23:54:51 +00:00
* src/newgrp.c: Split check_perms(), syslog_sg() out of main().
2008-01-01 23:07:55 +00:00
2008-01-01 22:21:55 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* lib/shadow.c: Avoid assignments in conditionals.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c (split_groups): Test the pointer returned by malloc.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Document add_one_entry_nis(), write_all(),
commonio_remove(), commonio_locate(), and commonio_rewind().
2008-01-01 18:04:46 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Avoid implicit brackets.
2008-01-01 18:27:40 +00:00
* src/pwck.c: Avoid implicit conversions to booleans.
2008-01-01 18:04:46 +00:00
2008-01-01 16:54:18 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Avoid implicit brackets.
2008-01-01 17:51:54 +00:00
* src/grpck.c: Avoid implicit conversions to booleans.
2008-01-01 16:54:18 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: No functional changes were introduced by the previous pwck
and grpck changes, except for the following bug fix: no syslog
logging if a passwd or group file was specified on the command
line without a shadowed database file, even if the system shadowed
database was changed).
2008-01-01 16:25:57 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Fix typos in comments (gshadow/shadow).
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/pwck.c: Split process_flags(), open_files(), close_files()
check_pw_file(), and check_spw_file() out of main(). New global
variables is_shadow, sort_mode, use_system_pw_file, and
use_system_spw_file.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/xgetXXbyYY.c: De-comment code (duplicate the entry when
the _R function is not present on the system).
2008-01-01 14:38:47 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/lastlog.c: Remove statbuf, not used.
* src/lastlog.c: Fix types, cast umin and umax to uid_t.
* src/lastlog.c: (option -u) user needs to be a signed long, not
uid_t (to accept rangees like -<uid>
2008-01-01 14:34:07 +00:00
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Avoid ?: construct without the middle term.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c, src/usermod.c, lib/prototypes.h: The uid and
gid parameters can be set to -1 to indicate that the original
owners must be kept. Change the types from uid_t/gid_t to a
long int (signed).
* libmisc/copydir.c: Change the copy_entry(), copy_dir(),
copy_symlink(), copy_special(), and copy_file() prototypes
accordingly.
* lib/prototypes.h: Add the parameters' name for the
libmisc/copydir.c functions.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c,
lib/pwauth.c: Avoid empty file when USE_PAM is set.
* libmisc/audit_help.c: Avoid empty file when WITH_AUDIT is not set.
* src/login_nopam.c: Fix warnings: resolve_hostname takes and
returns a constant string.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Split process_flags(), open_files(), and
close_files() out of main(). New global variables is_shadow,
sort_mode, use_system_grp_file, and use_system_sgr_file.
* src/grpck.c: Split check_grp_file() and check_sgr_file() out of
main().
* src/grpck.c: Split check_members() and compare_members_lists()
out of check_grp_file() and check_sgr_file().
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
* man/po/Makefile.in.in: If remove-potcdate.sin does not exist,
use the one from teh po directory (it is not installed
automatically by autopoint.
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.h: Fix the type of the bitfields in the commonio_entry
and commonio_db structures to unsigned int (instead of int).
2007-12-31 14:52:52 +00:00
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
2007-12-31 15:06:22 +00:00
* src/chsh.c: Split process_flags(), check_perms(), and update_shell()
out of main().
2007-12-31 14:54:46 +00:00
* src/chsh.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
2007-12-31 15:27:23 +00:00
* src/chsh.c: Avoid implicit brackets.
2007-12-31 15:30:29 +00:00
* src/chsh.c: Avoid assignments in comparisons.
2007-12-31 14:52:52 +00:00
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
* src/chfn.c: New function: process_flags() split out of main().
The flags variables are now global.
* src/chfn.c: New functions: check_perms(), update_gecos(),
get_old_fields(), and check_fields() split out of main().
* src/chfn.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
2007-12-31 13:48:48 +00:00
* src/chfn.c: Avoid implicit brackets.
2007-12-31 14:03:14 +00:00
* src/chfn.c: Document may_change_field().
2007-12-31 14:15:29 +00:00
* src/chfn.c: Avoid implicit conversions to booleans.
2007-12-31 14:25:06 +00:00
* src/chfn.c: Avoid assignments in comparisons.
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Compilation fix for PAM support (pamh needs to be
global since the function split).
* src/chpasswd.c: Likewise.
* src/chgpasswd.c: Likewise.
* src/chpasswd.c: Avoid implicit conversions to booleans.
2007-12-31 04:29:30 +00:00
2007-12-31 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Fix typo: s/maximim/maximum/
* src/chage.c: New function: fail_exit(). Change most of the exit()
to a fail_exit, which makes sure the files are unlocked (new global
variables: pw_locked, spw_locked), the PAM transaction is ended, and
the failure is logged to libaudit (use a global user_name and user_uid
for logging).
* src/chage.c: Compilation fix for PAM support (pamh needs to be
global since the function split).
* src/chage.c: Document process_flags(), check_flags(), check_perms(),
open_files(), and close_files().
* src/chage.c: Split update_age() and get_defaults() out of main()
* src/chage.c: Drop the privileges just after opening the files.
* src/chage.c: Do not log to audit only if the user has an entry in
the shadow file.
* NEWS, src/chage.c (open_files): Also open the password file for
writing. This fix chage when the user only has a password entry (and
no shadow entries).
* src/chage.c (get_defaults): Use default values that don't change the
behavior of the account for the fields that are not specified when the
user has no shadow entry.
2007-12-31 04:29:30 +00:00
2007-12-30 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Compilation fix for PAM support (pamh needs to be
global since the function split).
* src/groupadd.c: End the PAM transaction in fail_exit().
* src/groupadd.c: Document check_flags().
2007-12-30 Nicolas François <nicolas.francois@centraliens.net>
2007-12-30 21:39:57 +00:00
* src/vipw.c: Compilation fix for non-gshadow support.
2007-12-29 17:26:28 +00:00
2007-12-29 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: Added support for gshadow.
2007-12-29 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: Do not add the new user to the group's
members, because the group is already the primary group of the new
user.
2007-12-29 14:11:54 +00:00
2007-12-29 Nicolas François <nicolas.francois@centraliens.net>
newusers cleanups
* src/newusers.c: main() split in new functions: process_flags(),
check_flags(), check_perms(), open_files(), and close_files().
* src/newusers.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
2007-12-29 14:34:39 +00:00
* src/newusers.c: Avoid implicit brackets.
2007-12-29 14:48:33 +00:00
* src/newusers.c: Avoid assignments in comparisons.
2007-12-29 14:52:35 +00:00
* src/newusers.c: Avoid variables with the name of a type.
2007-12-29 14:11:54 +00:00
2007-12-29 10:42:25 +00:00
2007-12-29 Nicolas François <nicolas.francois@centraliens.net>
chage cleanups
* src/chage.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
* src/chage.c: main() split in new functions: process_flags(),
check_flags(), check_perms(), open_files(), and close_files().
* src/chage.c: Avoid using a variable with the same name as a type.
* src/chage.c: Remove dead code. It was probably put here to add more
information to the audit_logger.
2007-12-29 11:06:35 +00:00
* src/chage.c: Avoid implicit brackets.
* src/chage.c: Avoid implicit conversion to booleans.
2007-12-29 11:34:31 +00:00
* src/chage.c: Avoid assignments in comparisons.
2007-12-29 10:42:25 +00:00
2007-12-28 22:54:35 +00:00
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
Same changes for chgpasswd:
* src/chgpasswd.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
* src/chgpasswd.c: main() split in process_flags(), check_flags(),
2007-12-28 22:54:35 +00:00
check_perms(), open_files(), and close_files().
* src/chgpasswd.c: Avoid assignments in comparisons.
* src/chgpasswd.c: Avoid implicit brackets.
* src/chgpasswd.c: Fix comments to match chgpasswd (group instead of
user's passwords are changed).
2007-12-28 22:54:35 +00:00
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
* src/chpasswd.c: New functions: process_flags(), check_flags(),
check_perms(). Split out of main().
* src/chpasswd.c: Other new functions: open_files(), close_files().
This force flushing the password database after the password file is
unlocked.
2007-12-28 22:24:02 +00:00
* src/chpasswd.c: Avoid assignments in comparisons.
2007-12-28 22:34:14 +00:00
* src/chpasswd.c: Avoid implicit brackets.
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c (find_new_gid): A group with the specified name
cannot exist at that time. Remove the check.
* src/groupadd.c (find_new_gid): If oflg is set, gflg is also set.
2007-12-28 10:20:02 +00:00
Use (!gflg), which is clearer than (!gflg || !oflg).
2007-12-28 10:30:39 +00:00
* src/groupadd.c (find_new_gid): find_new_gid is never called when an
GID is specified with -g. Simplify find_new_gid accordingly.
* src/groupadd.c (process_flags): prefer fail_exit to exit. This avoid
an explicit call to audit_logger().
* src/groupadd.c (main): Before pam_end(), the return value of the
previous pam API was already checked. No need to validate it again.
* src/groupadd.c (main, check_perms): New function check_perms().
Split the validation of the user's permissions out of main()
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
src/groupadd.c cleanup
* src/groupadd.c (fail_exit): When compiled without AUDIT support, if
the return code was E_SUCCESS, fail_exit() wouldn't have exited. Fix
the scope of #idef WITH_AUDIT.
2007-12-28 10:12:09 +00:00
* src/groupadd.c: Avoid implicit brackets.
2007-12-28 11:22:27 +00:00
* src/groupadd.c: Split the processing and checking of options out of
main() (process_flags).
* src/groupadd.c: New function check_flags(). Split the validation of
options and arguments out of process_flags.
2007-12-28 11:22:27 +00:00
* src/groupadd.c: Add the parameters' names in the prototypes.
2007-12-27 23:23:51 +00:00
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
libmisc/copydir.c cleanup
* libmisc/copydir.c: Split copy_tree() in more maintainable functions:
copy_entry(), copy_dir(), copy_symlink(), copy_hardlink(),
copy_special(), and copy_file().
* libmisc/copydir.c: -1 is used to indicate an error, directly set err
to -1, instead of incrementing it, and checking if not nul at the
end.
2007-12-28 22:24:02 +00:00
* libmisc/copydir.c: Avoid assignments in comparisons.
2007-12-27 23:32:47 +00:00
* libmisc/copydir.c: Document selinux_file_context.
2007-12-27 23:40:00 +00:00
* libmisc/copydir.c: Avoid implicit brackets.
2007-12-28 00:03:26 +00:00
* libmisc/copydir.c: Avoid implicit conversions to booleans.
2007-12-27 23:23:51 +00:00
2007-12-27 17:36:08 +00:00
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
gpasswd cleanup
* src/gpasswd.c: Add argument name to the internal function
prototypes.
* src/gpasswd.c: Document global variables.
2007-12-27 18:27:57 +00:00
* src/gpasswd.c: New function: process_flags(). Split the processing
of options out of main().
2007-12-27 18:52:40 +00:00
* src/gpasswd.c: New functions: open_files(), close_files(),
update_group(). Split out from main() to simplify this (too) big
function.
2007-12-27 21:04:22 +00:00
* src/gpasswd.c: New functions: check_perms(), get_group(),
2007-12-27 21:19:57 +00:00
change_passwd(), check_flags(). Split out of main() to simplify main().
2007-12-27 21:28:50 +00:00
* src/gpasswd.c: Avoid implicit brackets.
2007-12-28 22:24:02 +00:00
* src/gpasswd.c: Avoid assignments in comparisons.
2007-12-27 21:56:45 +00:00
* src/gpasswd.c: Avoid implicit conversions to booleans.
2007-12-27 17:36:08 +00:00
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 462_warn_to_edit_shadow
* NEW, src/vipw.c: Recommend editing the shadowed (resp. regular) file
if the regular (resp. shadowed) file was edited.
2007-12-26 23:15:43 +00:00
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 451_login_PATH
* NEWS, libmisc/setupenv.c: Export PATH according to ENV_PATH and
ENV_SUPATH, as for su. This impacts login.
2007-12-26 23:17:27 +00:00
* man/login.1.xml: PATH and SUPATH are now used both when PAM support
is disabled and enabled.
2007-12-26 23:15:43 +00:00
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 496_login_init_session
* src/login.c, src/sulogin.c: If started as init, start a new session.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 408_passwd_check_arguments
* NEWS, src/passwd.c: Make sure that no more than one username
argument was provided.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 412_lastlog_-u_numerical_range
* NEWS, src/lastlog.c, man/lastlog.8.xml: Accept numerical user, or
ranges with the -u option.
2007-12-26 16:50:38 +00:00
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 466_fflush-prompt
* libmisc/Makefile.am, lib/prototypes.h, libmisc/yesno.c, src/grpck.c,
src/pwck.c: move yes_or_no() from grpck/pwck to a separate
libmisc/yesno.c (with a read_only argument).
* libmisc/fields.c, libmisc/yesno.c: Make sure stdout is flushed before
reading the user's answer.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge Debian's patch 480_getopt_args_reorder
* NEWS, src/su.c: su's arguments are now reordered.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge RedHat's patch shadow-4.0.18.1-mtime.patch:
* NEWS: Document that usermod will now preserve user's file modification
and access time.
* libmisc/copydir.c: Preserve the access and modification time of copied
files. This is important for usermod. This will also impact useradd, for
the skeleton files, but this is not important.
* libmisc/copydir.c: Stop and return an error if a file could not be
closed after during a copy.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Cleanups:
* src/useradd.c (find_new_gid): Check that gflg is not set (assert).
* src/useradd.c (find_new_gid): Do not check the group name uniqueness
(already checked in main).
* src/useradd.c (find_new_gid): Avoid a "continue" in the loop.
* src/useradd.c (find_new_gid): Remove irrelevant comments.
* src/useradd.c (find_new_gid): Fix the function definition's comment.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge RedHat's patch shadow-4.0.18.1-findNewUidOnce.patch:
* src/useradd.c (usr_update): Do not call find_new_uid(). The UID was
already either specified or found by another call to find_new_uid().
* src/useradd.c (find_new_uid): Always start with uid_min (find_new_uid()
is never called when user_id was already specified).
* src/useradd.c (find_new_uid): Fix the comments (find_new_uid() is not
called when the UID is specified (uflg)).
* src/useradd.c (main): Only call find_new_uid() if (!oflg) and (!uflg).
If uflg is set (but not oflg), check the UID uniqueness.
* src/useradd.c (find_new_uid): Don't check the uid and user name
uniqueness in find_new_uid(). The user name uniqueness is already checked
during the parameter validation. UID uniqueness is also checked (see
above).
* src/useradd.c (find_new_uid): Don't check uflg in find_new_uid().
* src/useradd.c (find_new_uid): Make sure that find_new_uid() is not
called when uflg is set (assert).
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge RedHat's patch shadow-4.1.0-lOption.patch
* NEWS, src/useradd.c, man/useradd.8.xml: Add option -l to avoid adding
the user to the lastlog and faillog databases.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/groupadd.c: NO_GETPWENT is no more supported. Remove
associated chunks of code.
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
* man/groupadd.8.xml: Document the long options (--force, --gid, --key,
--non-unique).
2007-12-26 Nicolas François <nicolas.francois@centraliens.net>
Merge RedHat's patch shadow-4.0.3-noinst.patch
* NEWS, lib/Makefile.am: Do not install the shadow library per default.
lib_LTLIBRARIES changed to noinst_LTLIBRARIES.
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, configure.in: Prepare the 4.1.0 release.
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/chgpasswd.c: Use chgpasswd PAM policy file instead of
chpasswd's one.
2007-12-09 14:50:14 +00:00
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
* man/pwconv.8.xml: Fix typos.
* man/chpasswd.8.xml, man/chgpasswd.8.xml: Document the NONE crypt
method.
* man/login.defs.d/MAIL_DIR.xml: Add comment regarding useradd not
using MAIL_FILE.
* man/login.defs.d/ERASECHAR.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/CONSOLE_GROUPS.xml, man/login.defs.d/ENV_HZ.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml:
These variables are also used by some tools when compiled with PAM
support.
* man/login.defs.d/ENV_HZ.xml: Add note that it is only used by
sulogin when compiled with PAM support.
* man/login.defs.d/ENV_SUPATH.xml: Typos: ENV_PATH -> ENV_SUPATH,
and mention sbin in the path.
* man/login.defs.d/LOGIN_STRING.xml: Fix typo: confition ->
condition.
* man/sg.1.xml: Add CONFIGURATION section (SYSLOG_SG_ENAB).
* man/su.1.xml: ENV_HZ, LOGIN_STRING, MAIL_DIR, USERGROUPS_ENAB
are only used when su is compiled without PAM support.
* man/login.defs.5.xml: Added variables: OBSCURE_CHECKS_ENAB
PASS_ALWAYS_WARN PASS_CHANGE_TRIES SULOG_FILE SU_NAME
SU_WHEEL_ONLY SYSLOG_SG_ENAB SYSLOG_SU_ENAB.
* man/login.defs.5.xml: ENVIRON_FILE is only used when compiled
without PAM support.
* man/login.defs.5.xml: sulogin uses variables even when compiled
with PAM support.
* man/login.1.xml: ENV_HZ ENV_PATH ENV_SUPATH MAIL_DIR UMASK are
only used when login is not compiled with PAM support.
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Make sure is_console is only defined when USE_PAM
is not defined.
2007-12-08 23:25:52 +00:00
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/pwd2spwd.c: Fix time() prototype.
2007-12-08 23:24:40 +00:00
2007-12-08 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-05 Nicolas François <nicolas.francois@centraliens.net>
* man/gshadow.5.xml: Fix the newgrp section in the gshadow.5
manpage. Thanks to Andre Majorel <aym-naibed@teaser.fr>.
2007-11-27 Nicolas François <nicolas.francois@centraliens.net>
* man/Makefile.am: Added the login.defs variables description to
the man's EXTRA_DIST.
2007-11-27 Nicolas François <nicolas.francois@centraliens.net>
* man/chfn.1.xml: Uses CHFN_AUTH, CHFN_RESTRICT, LOGIN_STRING.
* man/chgpasswd.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chpasswd.8.xml: Switch to using entities for ENCRYPT_METHOD,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chsh.1.xml: Uses CHSH_AUTH, LOGIN_STRING.
* man/expiry.1.xml: Does not use any login.defs parameter.
* man/gpasswd.1.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS.
* man/login.defs.5.xml: Added CHSH_AUTH.
* man/login.defs.5.xml: Cross reference -> cross references.
* man/login.defs.5.xml: chfn only uses CHFN_AUTH when no_pam.
* man/login.defs.5.xml: chsh uses CHSH_AUTH, not CHFN_AUTH.
* man/login.defs.d/CHSH_AUTH.xml: Added.
* man/login.defs.5.xml: chsh uses parameters only when no_pam.
* man/login.defs.5.xml: expiry does not use CONSOLE_GROUPS, even
if linked in the binary.
* man/newusers.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, PASS_MAX_DAYS, PASS_MIN_DAYS, PASS_WARN_AGE,
SHA_CRYPT_MIN_ROUNDS, UMASK.
2007-11-26 Nicolas François <nicolas.francois@centraliens.net>
* man/generate_translations.mak, man/po/Makefile.in.in: Add
--expand-all-entities to the call to xml2po to avoid translating
the external entities separately.
2007-11-26 Nicolas François <nicolas.francois@centraliens.net>
* man/login.defs.d/, man/login.defs.d/CHFN_RESTRICT.xml,
man/login.defs.d/MAIL_DIR.xml, man/login.defs.d/PASS_MAX_DAYS.xml,
man/login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml,
man/login.defs.d/CHFN_AUTH.xml, man/login.defs.d/MD5_CRYPT_ENAB.xml,
man/login.defs.d/PASS_WARN_AGE.xml, ·man/login.defs.d/UMASK.xml,
man/login.defs.d/PASS_MIN_DAYS.xml, man/login.defs.d/UID_MAX.xml,
man/login.defs.d/LOGIN_STRING.xml, man/login.defs.d/GID_MAX.xml,
man/login.defs.d/ENCRYPT_METHOD.xml, man/login.defs.d/USERDEL_CMD.xml,
man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml, man/login.defs.5.xml:
Put each variable description in an external entities. This will permit
to reference them in the various utils manpages.
* man/login.defs.5.xml: Describe the usage of variables by each
tools when compiled without PAM support.
2007-11-26 22:04:20 +00:00
2007-11-26 Nicolas François <nicolas.francois@centraliens.net>
* po/stats: Do not generate gmo files.
2007-11-25 21:28:26 +00:00
2007-11-25 Nicolas François <nicolas.francois@centraliens.net>
* man/po/LINGUAS: Added missing LINGUAS.
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: Updated.
2007-11-25 Nicolas François <nicolas.francois@centraliens.net>
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-24 22:41:24 +00:00
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c, src/lastlog.c, src/newusers.c, src/chpasswd.c,
src/usermod.c, src/chgpasswd.c, src/vipw.c, src/useradd.c,
src/su.c, src/groupmod.c, src/passwd.c, src/groupadd.c,
src/chage.c, src/faillog.c, src/chsh.c: Do not use tabulations in
Usage strings.
* po/ca.po, po/cs.po, po/da.po, po/de.po, po/el.po, po/es.po,
2007-11-25 20:21:53 +00:00
po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/hu.po, po/id.po,
po/it.po, po/ja.po, po/nb.po, po/pl.po, po/pt_BR.po, po/pt.po,
po/ro.po, po/ru.po, po/sk.po, po/sv.po, po/tl.po, po/tr.po,
po/uk.po, po/vi.po: Unfuzzy previous changes.
* po/bs.po, po/he.po, po/nn.po, po/sq.po: No Usage string
translated. Just updated PO.
* po/dz.po, po/km.po, po/ko.po, po/ne.po, po/nl.po, po/zh_CN.po,
po/zh_TW.po: It would be too error prone for me to unfuzzy these
ones. Updated PO. (km and ne should be reviewed: options are
translated).
2007-11-24 22:41:24 +00:00
2007-11-24 14:02:10 +00:00
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* po/ne.po, po/bs.po, po/cs.po, po/pt_BR.po, po/km.po, po/es.po,
po/eu.po, po/ko.po, po/hu.po, po/sk.po, po/vi.po, po/uk.po,
po/ro.po, po/sq.po, po/ru.po, po/id.po, po/nb.po, po/el.po,
po/gl.po, po/fr.po, po/nl.po, po/pl.po, po/nn.po, po/it.po,
po/dz.po, po/tl.po, po/pt.po, po/ca.po, po/da.po, po/tr.po,
po/sv.po, po/de.po, po/ja.po, po/zh_TW.po, po/he.po, po/fi.po,
po/zh_CN.po: Run "make update-po" in the po directory.
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: New configure option: --with-sha-crypt enabled by
default. Keeping the feature enabled is safe. Disabling it permits
to disable the references to the SHA256 and SHA512 password
encryption algorithms from the usage help and manuals (in addition
to the support for these algorithms in the code).
* libmisc/obscure.c, libmisc/salt.c, src/newusers.c,
src/chpasswd.c, src/chgpasswd.c, src/passwd.c: ENCRYPT_METHOD is
always supported in login.defs. Remove the ENCRYPTMETHOD_SELECT
preprocessor condition.
* libmisc/obscure.c, libmisc/salt.c, src/newusers.c,
src/chpasswd.c, src/chgpasswd.c, src/passwd.c: Disable SHA256 and
SHA512 if USE_SHA_CRYPT is not defined (this corresponds to a
subset of the ENCRYPTMETHOD_SELECT sections).
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* lib/encrypt.c: If we requested a non DES encryption, make sure
crypt returned a encrypted password longer than 13 chars. This
protects against the GNU crypt() which does not return NULL if the
algorithm is not supported, and return a DES encrypted password.
2007-11-24 00:28:25 +00:00
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Add missing #include "getdef.h"
2007-11-24 00:26:31 +00:00
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Provide the crypt method to all the
crypt_make_salt invocations.
* src/newusers.c: Tag the ENCRYPTMETHOD_SELECT dependent code
accordingly.
2007-11-24 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Make sure method is not NULL, defaulting to DES.
Thanks to Dan Kopecek <dkopecek@redhat.com>.
* src/chpasswd.c, src/chgpasswd.c: Do not use DES by default, but
the system default define in /Etc/login.defs. Thanks to Dan
Kopecek <dkopecek@redhat.com>.
* NEWS, man/chpasswd.8.xml, man/chgpasswd.8.xml: Do not mention
DES as the default algorithm.
* src/chpasswd.c, src/chgpasswd.c: Tag the ENCRYPTMETHOD_SELECT
dependent code accordingly.
2007-11-23 21:04:43 +00:00
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Move the srandom call to gensalt.
* libmisc/salt.c (gensalt): Replace the test on salt_size by an
assert.
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
Patch contributed by Dan Kopecek <dkopecek@redhat.com>
* src/chpasswd.c, src/chgpasswd.c, src/newusers.c: Fix compilation
when ENCRYPTMETHOD_SELECT is not defined.
* libmisc/salt.c (MAGNUM): The nul char was put on (array)[2]
instead of (array)[3].
* libmisc/salt.c: MAGNUM should be defined even if
ENCRYPTMETHOD_SELECT is not defined.
* libmisc/salt.c: Use random instead of rand.
* libmisc/salt.c (gensalt): New function to generate a salt
(instead of using gettimeofday).
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newusers.c: New options -c/--crypt-method
-s/--sha-rounds.
2007-11-23 20:09:57 +00:00
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c: Added crypt method: NONE.
* src/chpasswd.c: Added --sha-rounds to the usage().
* libmisc/Makefile.am, libmisc/getlong.c, src/chgpasswd.c,
2007-11-23 20:11:00 +00:00
src/chpasswd.c, lib/prototypes.h: New getlong function. Replace
chpasswd's and chgpasswd's getnumber.
2007-11-23 20:09:57 +00:00
2007-11-23 20:00:03 +00:00
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Removed unused variable 'member'.
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
* man/chpasswd.8.xml: Document the variables used by chpasswd.
The definitions are copied from login.defs. I should try to use a
less error prone process for this.
2007-11-23 20:00:03 +00:00
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
2007-11-23 19:55:47 +00:00
* man/login.defs.5.xml: Use <replaceable> for the values set by
users. (was sometimes <emphasis remap='I'>)
* man/login.defs.5.xml: Use <option> vor the variable names. This
makes the manpage much more readable.
* man/login.defs.5.xml (ENCRYPT_METHOD, MD5_CRYPT_ENAB,
SHA_CRYPT_MIN_ROUNDS, SHA_CRYPT_MAX_ROUNDS): Mention that command
line option may supersede the system setting.
* man/login.defs.5.xml: Document the variables used by chpasswd
and chgpasswd.
2007-11-23 20:00:03 +00:00
2007-11-23 Nicolas François <nicolas.francois@centraliens.net>
2007-11-23 19:44:57 +00:00
* lib/shadowmem.c, lib/groupmem.c, lib/pwmem.c:
svn propset svn:keywords Id
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, lib/getdef.c, man/login.defs.5.xml: New login.defs
variable: MAX_MEMBERS_PER_GROUP. Used for the split groups support.
* lib/commonio.c, lib/commonio.h: Add an open_hook and close_hook
operation. They are called after the database is actually opened
and parse, or before it is closed.
* lib/groupio.c: Add an open_hook to merge split groups, and an
close group to split groups if MAX_MEMBERS_PER_GROUP is set.
This fixes gpasswd and chgpasswd when split groups are used.
* lib/sgroupio.c, lib/shadowio.c, lib/pwio.c: No open or close
hooks for these databases. (unsure about what should be the gshadow
behavior for split groups)
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/gpasswd.c: Read the group and shadow groups using
gr_locate and sgr_locate. gpasswd write in the file database. Thus
it should read information from the file database, not using
getgrnam. The change to sgr_locate is just for consistency. This
requires opening the group databases (read only) using
gr_open/sgr_open.
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: SHADOWGRP added to AM_CONDITIONAL for the
generation of manpages.
* man/generate_translations.mak: Added pam/no_pam condition (like
in man/Makefile.am).
* man/Makefile.am, man/generate_translations.mak: Added
gshadow/no_gshadow condition.
* man/gpasswd.1.xml: Use the gshadow/no_gshadow condition to
change the manpage depending on the shadow group support.
* NEWS: Indicate that manpages should be re-generated if configure
option are changed, due to conditions.
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
* po/ru.po: Updated to 399t. Thanks to Yuri Kozlov <kozlov.y@gmail.com>.
* man/po/ru.po: Updated to 757t. Thanks also to Yuri Kozlov
<kozlov.y@gmail.com>.
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
* man/Makefile.am: Add support for conditionally including
paragraphs. (e.g. to support the documentation of PAM and !PAM
features).
2007-11-21 Nicolas François <nicolas.francois@centraliens.net>
* man/newusers.8.xml: Added /etc/gshadow, /etc/group, /etc/shadow,
and /etc/passwd to section FILES.
* man/newusers.8.xml: Mentions that PAM is not used to set the
passwords.
* man/chpasswd.8.xml: Added section FILES (/etc/passwd,
/etc/shadow, /etc/login.defs).
* man/chpasswd.8.xml: Use the same paragraph as in newusers.8.xml
to indicate that PAM is not used.
* man/chgpasswd.8.xml: Added section FILES (/etc/group,
/etc/gshadow, /etc/login.defs).
2007-11-21 Nicolas François <nicolas.francois@centraliens.net>
* src/newusers.c: Try harder to get the GID equal to the UID.
This was not the case when the GID is not specified, and a GID
exist with an ID higher than the all the UIDs.
* src/newusers.c: Typo in comment: contrained -> constrained.
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* src/chgpasswd.c: If the shadow group file is not present, do not
try to locate the group entry from /etc/gshadow, and set the
password in /etc/group.
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c, libmisc/salt.c, src/passwd.c: Match DES, MD5,
SHA256, and SHA512 exactly (not only the first 3/6 chars).
* libmisc/salt.c (SHA_salt_rounds): Set rounds to the specified
prefered_rounds value, if specified.
* src/gpasswd.c, libmisc/salt.c: Fix compilation warnings (use
size_t for lengths).
* src/chpasswd.c, src/chgpasswd.c: Add missing parenthesis.
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* man/sv, man/de, man/fr, man/pl, man/ru, man/it: Ignore the
generated manpages. Add *.[1358] to the svn:ignore property.
2007-11-20 13:09:55 +00:00
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* src/chgpasswd.c, src/chpasswd.c: The -c, -e, and -m options are
exclusives.
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* man/chpasswd.8.xml, man/chgpasswd.8.xml: Document how the
encryption algorithm is chosen for the passwords. Document the new
-c and -s options. Add a reference to login.defs(5).
* man/login.defs.5.xml: Document the ENCRYPT_METHOD,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS, and SHA_CRYPT_MAX_ROUNDS
variables.
* etc/login.defs: Indicate that MD5_CRYPT_ENAB is deprecated.
Document the relationship with PAM for MD5_CRYPT_ENAB and
ENCRYPT_METHOD.
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Increase the size of crypt_passwd from 128 to 256
to avoid overflow in case of SHA512 (161 should be sufficient).
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, libmisc/salt.c: Add parameters to
crypt_make_salt to force the crypt method and number of rounds.
* libmisc/salt.c: Add parameter to SHA_salt_rounds to force the
number of rounds.
* libmisc/salt.c, lib/getdef.c: ENCRYPT_METHOD and MD5_CRYPT_ENAB
are needed also when USE_PAM (e.g. for chpasswd).
2007-11-20 09:51:36 +00:00
* src/passwd.c, src/newusers.c, src/gpasswd.c: Use the new
crypt_make_salt prototype
* src/chpasswd.c, src/chgpasswd.c: Add option -c, --crypt-method
and -s, --sha-rounds to specify the crypt method and number of
rounds in case of one of the SHA methods. The new prototype of
crypt_make_salt simplifies the handling of -m, --md5.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: The salt has a random size (between 8 and 16
bytes).
* lib/getdef.c, etc/login.defs: Add definitions for
SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS.
* libmisc/salt.c: Use SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS
to add a random number of rounds if needed.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c (MAGNUM): Terminate the array with nul (the array
is then used with strcat).
* libmisc/salt.c (crypt_make_salt): Initialize result[0] to nul at
the beginning (was not initialized when USE_PAM).
* libmisc/salt.c (crypt_make_salt): Check that ENCRYPT_METHOD is a
valid crypt method.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, libmisc/obscure.c, libmisc/salt.c, src/passwd.c,
lib/getdef.c, etc/login.defs: Add support for SHA256 and SHA512
encrypt methods. Apply RedHat's patch shadow-4.0.18.1-sha256.patch.
Thanks to Peter Vrabec. Hardly no changes except re-indent and
changes related to recent modifications (max_salt_len in
crypt_make_salt). Changes in lib/defines.h not applied (definition
of ENCRYPTMETHOD_SELECT). I will add a configure check or flag.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/de/Makefile.am: Add su.1 to the generated manpages.
* man/fr/Makefile.am: Add id.1 to EXTRA_DIST. It will be
generated.
* man/pl/Makefile.am: Add groupmems.8 to the generated manpages.
* man/it/Makefile.am: Add logoutd.8 to EXTRA_DIST. It will be
generated.
* man/de/su.1, man/fr/id.1, man/pl/groupmems.8, man/it/logoutd.8:
Removed, since auto-generated.
2007-11-19 20:25:36 +00:00
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
Fix some compilation warnings:
* src/login.c: "dereferencing type-punned pointer will break
strict-aliasing rules", add a variable indirection: ptr_pam_user.
* lib/commonio.c: do not initialize the sb stat structure.
* lib/pwio.c, lib/shadowio.c, lib/sgroupio.c, lib/groupio.c:
initialize the security context if WITH_SELINUX.
* lib/nscd.c: The service argument is not const (used in the exec*
parameters). This matches with the prototype definition.
* src/groupmems.c: Avoid ++i when i is also used in the same line.
* src/newusers.c: i is positive every time it is compared. Add
cast to unsigned int.
* src/nologin.c: Use a main() prototype with no arguments.
* libmisc/getdate.y: Initialize the type and value fields of the
terminating entry for each TABLE.
* libmisc/tz.c: Use "TZ=CST6CDT" as the default timezone.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/pl/Makefile.am: Add getspnam.3 to EXTRA_DIST since it is
generated with shadow.3.
* man/generate_translations.mak: Clean all the manpages, based on
$(EXTRA_DIST), not $(man_MANS).
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/sv/getspnam.3, man/sv/faillog.5, man/sv/faillog.8,
man/sv/grpconv.8, man/sv/chsh.1, man/sv/shadow.3,
man/sv/grpunconv.8, man/sv/shadow.5, man/sv/newgrp.1,
man/sv/limits.5, man/sv/gpasswd.1, man/sv/sg.1, man/sv/userdel.8,
man/sv/lastlog.8, man/sv/login.access.5, man/sv/grpck.8,
man/sv/chfn.1, man/sv/expiry.1, man/sv/newusers.8,
man/sv/chpasswd.8, man/sv/pwconv.8, man/sv/logoutd.8,
man/sv/groupmems.8, man/sv/usermod.8, man/sv/pwunconv.8,
man/sv/su.1, man/sv/groupdel.8, man/sv/chgpasswd.8,
man/sv/login.defs.5, man/sv/vipw.8, man/sv/useradd.8,
man/sv/gshadow.5, man/sv/passwd.1, man/sv/groupmod.8,
man/sv/passwd.5, man/sv/chage.1, man/sv/porttime.5,
man/sv/login.1, man/sv/pwck.8, man/sv/nologin.8,
man/sv/groupadd.8, man/sv/suauth.5, man/sv/vigr.8,
man/sv/groups.1, man/de/passwd.1, man/de/newgrp.1, man/de/chsh.1,
man/de/passwd.5, man/de/login.1, man/de/vipw.8, man/de/chfn.1,
man/de/vigr.8, man/de/groups.1, man/fr/getspnam.3,
man/fr/faillog.5, man/fr/faillog.8, man/fr/grpconv.8,
man/fr/chsh.1, man/fr/shadow.3, man/fr/grpunconv.8,
man/fr/shadow.5, man/fr/newgrp.1, man/fr/limits.5,
man/fr/gpasswd.1, man/fr/sg.1, man/fr/userdel.8,
man/fr/login.access.5, man/fr/lastlog.8, man/fr/grpck.8,
man/fr/chfn.1, man/fr/expiry.1, man/fr/newusers.8,
man/fr/chpasswd.8, man/fr/pwconv.8, man/fr/logoutd.8,
man/fr/usermod.8, man/fr/pwunconv.8, man/fr/su.1,
man/fr/groupdel.8, man/fr/login.defs.5, man/fr/vipw.8,
man/fr/useradd.8, man/fr/gshadow.5, man/fr/passwd.1,
man/fr/groupmod.8, man/fr/passwd.5, man/fr/porttime.5,
man/fr/chage.1, man/fr/login.1, man/fr/pwck.8, man/fr/groupadd.8,
man/fr/suauth.5, man/fr/vigr.8, man/fr/groups.1, man/pl/faillog.5,
man/pl/faillog.8, man/pl/chsh.1, man/pl/grpconv.8,
man/pl/grpunconv.8, man/pl/shadow.5, man/pl/newgrp.1,
man/pl/limits.5, man/pl/gpasswd.1, man/pl/sg.1, man/pl/userdel.8,
man/pl/login.access.5, man/pl/lastlog.8, man/pl/grpck.8,
man/pl/chfn.1, man/pl/expiry.1, man/pl/newusers.8,
man/pl/pwconv.8, man/pl/chpasswd.8, man/pl/logoutd.8,
man/pl/usermod.8, man/pl/pwunconv.8, man/pl/su.1,
man/pl/groupdel.8, man/pl/vipw.8, man/pl/login.defs.5,
man/pl/useradd.8, man/pl/passwd.1, man/pl/groupmod.8,
man/pl/passwd.5, man/pl/porttime.5, man/pl/chage.1,
man/pl/login.1, man/pl/pwck.8, man/pl/groupadd.8, man/pl/suauth.5,
man/pl/vigr.8, man/pl/groups.1, man/ru/getspnam.3,
man/ru/faillog.5, man/ru/faillog.8, man/ru/grpconv.8,
man/ru/chsh.1, man/ru/shadow.3, man/ru/grpunconv.8,
man/ru/shadow.5, man/ru/newgrp.1, man/ru/limits.5,
man/ru/gpasswd.1, man/ru/sg.1, man/ru/userdel.8,
man/ru/login.access.5, man/ru/lastlog.8, man/ru/grpck.8,
man/ru/chfn.1, man/ru/expiry.1, man/ru/newusers.8,
man/ru/chpasswd.8, man/ru/pwconv.8, man/ru/logoutd.8,
man/ru/groupmems.8, man/ru/usermod.8, man/ru/pwunconv.8,
man/ru/su.1, man/ru/groupdel.8, man/ru/chgpasswd.8,
man/ru/login.defs.5, man/ru/vipw.8, man/ru/useradd.8,
man/ru/gshadow.5, man/ru/passwd.1, man/ru/groupmod.8,
man/ru/passwd.5, man/ru/chage.1, man/ru/porttime.5,
man/ru/login.1, man/ru/pwck.8, man/ru/nologin.8,
man/ru/groupadd.8, man/ru/suauth.5, man/ru/vigr.8,
man/ru/groups.1, man/it/getspnam.3, man/it/faillog.5,
man/it/faillog.8, man/it/grpconv.8, man/it/chsh.1,
man/it/shadow.3, man/it/grpunconv.8, man/it/shadow.5,
man/it/newgrp.1, man/it/gpasswd.1, man/it/sg.1, man/it/userdel.8,
man/it/lastlog.8, man/it/grpck.8, man/it/chfn.1, man/it/expiry.1,
man/it/newusers.8, man/it/chpasswd.8, man/it/pwconv.8,
man/it/usermod.8, man/it/pwunconv.8, man/it/su.1,
man/it/groupdel.8, man/it/vipw.8, man/it/useradd.8,
man/it/passwd.1, man/it/groupmod.8, man/it/passwd.5,
man/it/porttime.5, man/it/chage.1, man/it/login.1, man/it/pwck.8,
man/it/groupadd.8, man/it/vigr.8, man/it/groups.1,
man/pl/shadow.3, man/pl/sulogin.8, man/pl/id.1, man/ru/sulogin.8,
man/ru/id.1, man/it/id.1: Remove generated translated manpages.
They are still distributed with the shadow tarballs.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/pl/chgpassw.8: Remove chgpassw.8 since the real manpage
should be named chgpasswd.8.
2007-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/vigr.8.xml: Remove file. The vigr man page is generated from
the vipw XML file.
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, configure.in, libmisc/Makefile.am,
libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
libmisc/xgetgrnam.c, libmisc/xgetgrgid.c, libmisc/xgetspnam.c:
Added functions xgetpwnam(), xgetpwuid(), xgetgrnam(),
xgetgrgid(), and xgetspnam(). They allocate memory for the
returned structure and are more robust to successive calls. They
are implemented with the libc's getxxyyy_r() functions if
available.
* NEWS, libmisc/limits.c, libmisc/entry.c, libmisc/chowntty.c,
libmisc/addgrps.c, libmisc/myname.c, libmisc/rlogin.c,
libmisc/pwdcheck.c, src/newgrp.c, src/login_nopam.c, src/login.c,
src/userdel.c, src/lastlog.c, src/grpck.c, src/gpasswd.c,
src/newusers.c, src/chpasswd.c, src/chfn.c, src/groupmems.c,
src/usermod.c, src/expiry.c, src/groupdel.c, src/chgpasswd.c,
src/su.c, src/useradd.c, src/groupmod.c, src/passwd.c, src/pwck.c,
src/groupadd.c, src/chage.c, src/login.c, src/suauth.c,
src/faillog.c, src/groups.c, src/chsh.c, src/id.c: Review all the
usage of one of the getpwnam(), getpwuid(), getgrnam(),
getgrgid(), and getspnam() functions. It was noticed on
http://bugs.debian.org/341230 that chfn and chsh use a passwd
structure after calling a pam function, which result in using
information from the passwd structure requested by pam, not the
original one. It is much easier to use the new xget... functions
to avoid these issues. I've checked which call to the original
get... functions could be left (reducing the scope of the
structure if possible), and I've left comments to ease future
reviews (e.g. /* local, no need for xgetpwnam */).
Note: the getpwent/getgrent calls should probably be checked also.
* src/groupdel.c, src/expiry.c: Fix typos in comments.
* src/groupmod.c: Re-indent.
* lib/Makefile.am, lib/groupmem.c, lib/groupio.c, lib/pwmem.c,
lib/pwio.c, lib/shadowmem.c, lib/shadowio.c: Move the __<xx>_dup
functions (used by the xget... functions) from the <xx>io.c files
to the new <xx>mem.c files. This avoid linking some utils against
the SELinux library.
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* man/pl/pl.po: Fix typo: chgpassw -> chgpasswd.
* man/pl/Makefile.am: Fix typo: chgpassw -> chgpasswd.
* man/de/de.po: groups shall not be translated (for command,
refname, or refentrytitle).
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Fix typo introduced while fixing
http://bugs.debian.org/451521 (compile fix).
2007-11-18 01:21:43 +00:00
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/Makefile.am: Fix typo: EXTRA_DOST -> EXTRA_DIST.
2007-11-18 01:20:10 +00:00
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* src/login_nopam.c: Fix a typo in a comment.
2007-11-18 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Do not document the behavior compared to old
versions.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* man/usermod.8.xml: Document the differences between locking an
account and locking a password.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/usermod.c: Refuse to unlock an account when it would
result in a passwordless account. Based on Openwall's patch
shadow-4.0.4.1-owl-usermod-unlock.diff.
* NEWS, src/passwd.c: Likewise.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c (path_prefix): Make sure that the prefix is the
name of a directory (not only the beginning of a directory).
Openwall patch shadow-4.0.4.1-owl-userdel-path_prefix.diff.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
2007-11-17 22:17:42 +00:00
* NEWS, src/newgrp.c: Do not give an indication that the group has no
password.
* src/newgrp.c: Do not only bail on syslog if the password is not
valid. Also give an indication to the user on stderr.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
Fixes from Openwall patch shadow-4.0.4.1-owl-chage-drop-priv.diff:
* src/chage.c: Remove cleanup(). pw_lock is never called. Replace
cleanup(2) by spw_unlock and remove the calls to cleanup(1).
* src/chage.c: Remove variable pwrw. It is always set to 0. The
password database is always read only.
* src/chage.c: Make chage -l also drop the saved GID.
* src/chage.c: Prefer setregid/setreuid to setgid/setuid.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
Fixes from Openwall patch shadow-4.0.4.1-alt-man.diff:
* man/useradd.8.xml: Indicate that the NIS caveats is also valid
for any external database as LDAP.
* man/groupadd.8.xml: Likewise.
* man/groupadd.8.xml: Reorder and reformat the caveats bullets.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Applied Debian patch 409_man_generate_from_PO to
automatically generate the translated manpages from the POs.
* man/Makefile.am: Replace the individual rules for the generation
of the manpages (from XML) by a generic Makefile rule an
dependencies for the linked manpages.
* man/generate_translations.mak: Generic rules for all the
generated translated manpages (if ENABLE_REGENERATE_MAN).
* man/Makefile.am: Removed rules for all the generated translated
manpages.
* man/sv/Makefile.am, man/de/Makefile.am, man/fr/Makefile.am,
man/pl/Makefile.am, man/ru/Makefile.am, man/it/Makefile.am:
Include generate_translations.mak to handle the generated
translations (XML and roff files).
* man/Makefile.am: Translated XML files moved from the CLEANFILES
variable of man/Makefile.am to the various languages Makefiles.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* man/chpasswd.8.xml: Document that chpasswd does not use PAM to
update the passwords. This fixes http://bugs.debian.org/396726.
Debian patch 411_chpasswd_document_no_pam.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/su.c: Avoid terminating the PAM library in the forked
child. This is done later in the parent after closing the PAM
session. This fixes http://bugs.debian.org/412061.
Debian patch 405_su_no_pam_end_before_exec.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* man/newgrp.1.xml: Mention sg in the newgrp manpage.
2007-11-17 17:24:23 +00:00
This fixes http://bugs.debian.org/396690.
Debian patch 410_newgrp_man_mention_sg.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Fix typo: the warndays option was called warning.
This is now warndays, as documented in the manpage and usage.
2007-11-17 17:24:23 +00:00
This fixes http://bugs.debian.org/445481.
Debian patch 417_passwd_warndays.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/pwck.c: Remove the preprocessor check SHADOWPWD. The
variable is no more defined (and always assumed).
Debian patch 493_pwck_no_SHADOWPWD.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
2007-11-17 16:43:00 +00:00
* NEWS, src/passwd.c, man/passwd.1.xml: -l/-u options: edit the
shadow account expiry field *in addition* to editing the password
2007-11-17 17:24:23 +00:00
field. This fixes http://bugs.debian.org/389183.
Debian patch 494_passwd_lock.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
2007-11-17 16:43:00 +00:00
* NEWS, src/newgrp.c: Do not request a password when a user uses
newgrp to switch to her primary group.
2007-11-17 17:24:23 +00:00
This fixes http://bugs.debian.org/396691.
Debian patch 497_newgrp_primary_group.
* src/newgrp.c: Remove a comment which states otherwise.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Log an error if the password entry could not be
found (respect LOG_UNKFAIL_ENAB to avoid logging a password). This
fixes the Debian bug http://bugs.debian.org/451521
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* man/useradd.8.xml: -b documenation: Use the same notation for
the -d argument as in the -d documentation.
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>
* src/usermod.c: Use the same error message for the below errors.
(option working ONLY if another is specified).
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Make usermod -o and -u work independently of the
argument order.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Validate that two of the -L, -p, and -U options
are not used at the same time after the parsing of options. -U
used to be allowed after -p or -L, but not before.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Make usermod -d and -m work independently of the
argument order. Thanks to Justin Pryzby <jpryzby+d@quoininc.com>
2007-11-17 17:24:23 +00:00
for the patch. This fixes http://bugs.debian.org/451518.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, lib/nscd.c: Execute nscd -i instead of using the private
glibc socket to flush the nscd tables. This comes from the RedHat
patch shadow-4.0.16-nscd.c.
* lib/commonio.c: Forbid inheritance of the passwd and group files
to the spawed processes (like nscd). This comes from the RedHat
patch shadow-4.0.17-notInheritFd.patch.
* lib/nscd.h: Update header.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c (fail_exit): Add static variables pw_locked,
spw_locked, gr_locked, and sgr_locked to indicate which files must
be unlocked.
* src/usermod.c (open_files, close_files): Open and close the
group files as well as the passwd files. This permit to check if
the group files modification are allowed before writing the passwd
files.
* src/usermod.c (grp_update, update_gshadow, update_group): Do not
return a status code, but call fail_exit() in case of error. The
group files are no more opened and closed in update_gshadow() and
update_group().
* src/usermod.c (main): move the call to grp_update between
open_files and close_files.
* src/usermod.c: Differentiate failure to add a group entry and
failure to add a shadow group entry.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c: Differentiate failure to update a group entry and
failure to update a shadow group entry.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c, src/usermod.c, src/useradd.c: Inform the user if
out of memory while updating a group database.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/usermod.c: Update the group database before flushing
the nscd caches.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/userdel.c: Abort if an error is found while updating the
user or group database. No changes will be written in the
databases.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: It is no more needed to check that the user's
groups are specified only once in the group file. This is checked
by gr_update().
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c (next_entry_by_name): New function.
* NEWS, lib/commonio.c (commonio_update): When an entry is updated, make
sure that there are no other entry with the same name. This fixes
an infinite loop in userdel and usermod when an (erroneous) group
file contains two entries with the same name.
(https://bugzilla.redhat.com/show_bug.cgi?id=240915)
2007-11-16 22:33:59 +00:00
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/salt.c: Make sure the salt string is terminated at the
right place (either 8th, or 11th position).
* NEWS, src/chgpasswd.c, src/chpasswd.c: The protocol + salt does
not need 15 chars. No need for a temporary buffer.
This change the fix committed on 2007-11-10. The salt provided to
pw_encrypt could have been too long.
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* man/fr/fr.po: Fix typo: missing / in <placeholder-1/>. This
caused the gpasswd title to be incomplete in the French manpage.
2007-11-16 12:36:21 +00:00
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Check if the l64a function exists instead of a64l
which we do not use.
* libmisc/salt.c: Add support for uClibc with no l64a().
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Check if the netdb.h header file and the innetgr
function exist.
* src/login_nopam.c, NEWS: Add support for systems with no
innetgr(). On those systems, username with an @ will be treated
like any other username (i.e. lookup in the local database for an
user with an @). Thanks to Mike Frysinger for the patch.
2007-11-16 10:50:38 +00:00
2007-11-16 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Indentation fix.
2007-11-14 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c, NEWS: Declare the child and pid variable at the
beginning of a block. This fixes a compilation issue with gcc 2.95.
The intent is the same as Gentoo's patch shadow-4.0.12-gcc2.patch.
2007-11-14 Nicolas François <nicolas.francois@centraliens.net>
* src/Makefile, NEWS: Add a suidperms variable. This should ease
the change of permission of suid binaries for distributors (not
recommended).
2007-11-10 Nicolas François <nicolas.francois@centraliens.net>
* ./, libmisc/, src/, contrib/, doc/, lib/, man/, man/sv/,
man/de/, man/ja/, man/fi/, man/pt_BR/, man/fr/, man/pl/, man/hu/,
man/tr/, man/ru/, man/zh_TW/, man/id/, man/zh_CN/, man/cs/,
man/es/, man/ko/, man/it/, etc/, etc/pam.d/, po/: Restore the
ignore patterns from the previous repository.
* libmisc/*.c, libmisc/*.h, libmisc/getdate.y, shadow.spec.in,
src/*.c, contrib/groupmems.shar, contrib/pwdauth.c,
doc/README.platforms, doc/WISHLIST, doc/console.c.spec.txt,
lib/*.c, lib/*.h, COPYING, man/*.xml, man/sv/*.[1358],
man/de/*.[1358], man/ja/*.[1358], man/fi/*.[1358],
man/fr/*.[1358], man/pt_BR/*.[1358], man/pl/*.[1358],
man/hu/*.[1358], man/tr/*.[1358], man/ru/*.[1358],
man/zh_TW/*.[1358], man/id/*.[1358], man/zh_CN/*.[1358],
man/cs/*.[1358], man/es/*.[1358], man/ko/*.[1358],
man/it/*.[1358], etc/login.access, etc/login.defs, NEWS: Added the
subversion svn:keywords property (Id) for proper identification.
2007-11-10 22:36:37 +00:00
2007-11-10 Nicolas François <nicolas.francois@centraliens.net>
* man/sv/sv.po, man/de/de.po, man/fr/fr.po, man/pl/pl.po,
man/ru/ru.po, man/it/it.po: Run "make update-po" in the man
directory.
* po/ne.po, po/bs.po, po/cs.po, po/pt_BR.po, po/km.po, po/es.po,
po/eu.po, po/ko.po, po/hu.po, po/sk.po, po/vi.po, po/uk.po,
po/ro.po, po/sq.po, po/ru.po, po/id.po, po/nb.po, po/el.po,
po/gl.po, po/fr.po, po/nl.po, po/pl.po, po/nn.po, po/it.po,
po/dz.po, po/tl.po, po/pt.po, po/ca.po, po/da.po, po/tr.po,
po/sv.po, po/de.po, po/ja.po, po/zh_TW.po, po/he.po, po/fi.po,
po/zh_CN.po: Run "make update-po" in the po directory.
2007-11-10 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/newgrp.c: Don't ask for a password if there are no
group passwords. Just directly give up. This comes from the
Fedora's patch shadow-4.0.13-newgrpPwd.patch, and seems to be the
only part with an effect.
2007-11-10 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/chgpasswd.c, src/chpasswd.c: Fix chpasswd and
chgpasswd stack overflow. Based on Fedora's
shadow-4.0.18.1-overflow.patch.
2007-11-10 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/useradd.c: Allow non numerical group identifier to be
specified with useradd's -g option. Applied Debian patch
397_non_numerical_identifier. Thanks also to Greg Schafer
<gschafer@zip.com.au>.
2007-10-28 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Prepare the next release: 4.0.18.2. The gettext
version used for the configuration will be 0.16.
2007-10-28 Nicolas François <nicolas.francois@centraliens.net>
* po/ja.po: Remove a plural form. nplurals=1 for japanese.
Moreover, msgstr[0] was identical to msgstr[1].
2007-10-27 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c, man/limits.5.xml, etc/limits: Apply patch sent
by Justin Bronder <jsbronder@gmail.com>. See Debian bug #442334.
This adds support to 2 new resource limits: max nice value, and
max real time priority. This is only used when shadow is not
compiled with PAM support.
2007-10-27 Nicolas François <nicolas.francois@centraliens.net>
* man/gpasswd.1.xml: Describe the options separately in the
OPTIONS section. Simplify the synopsis.
2007-10-27 13:11:28 +00:00
2007-10-27 Nicolas François <nicolas.francois@centraliens.net>
* README, po/Makevars: Update contact information.
2007-10-27 12:46:30 +00:00
2007-10-27 Christian Perrier <bubulle@debian.org
* src/newgrp.c, src/passwd.c, src/su.c:
No longer 'apologize' to users when they use incorrect passwords
Remove "Sorry" from programs display
Imported from Debian's patch 413_no-sorry-in-passwd and
102_de-fix-sorry
* man/fr/fr.po: fix translation errors. Imported from Debian's
patch 201_fix_man_su_fr and 416_man-fr_newgrp
* man/it/it.po, man/Makefile.am, man/it/Makefile.am:
Use gettext for the Italian man pages translation. Imported from
Debian's patch 202_it_man_uses_gettext. Thanks to Giuseppe
Sacco who contributed the Italian translation.
* man/de/de.po: (nearly) complete German translation of man pages
Imported from Debian's patch 203_de-man-update. Thanks to
Simon Brandmair
* src/usermod.c: Clarify the online help of usermod for "-a"
Imported from Debian's patch 402-clarify_usermod_usage
2007-10-27 13:45:14 +00:00
* man/shadow.5.xml: fix spelling error. Imported from Debian's
patch 433_shadow.5-typo_312430
* src/su.c: Be up front on the origin of su and mention the GNU
origin. Imported from Debian's patch 438_su_GNU_origin
2007-10-27 12:46:30 +00:00
2007-10-27 13:11:28 +00:00
2007-10-27 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, po/zh_CN.po: Updated Chinese translation. Imported from
Debian's patch 105_zh_CN. Thanks to Ming Hua for the update.
2007-10-27 12:08:44 +00:00
2007-10-13 Tommi Vainikainen <thv+debian@iki.fi>
* NEWS, po/fi.po: Updated Finish translation (400t).
2007-10-13 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/su.c: If compiled without PAM support, enforce the
limits from /etc/limits when one of the -, -l, or --login options
is set, even if called by root. Thanks to Justin Bronder.
2007-10-07 14:57:03 +00:00
2007-10-07 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, Changelog: Convert the Changelog and NEWS files to UTF-8
(it was partially ISO-8859-2).
2007-02-01 Tomasz Kłoczko <kloczek@pld.org.pl>
* NEWS, man/groupadd.8.xml, man/groupmod.8.xml, man/login.1.xml, man/useradd.8.xml, man/userdel.8.xml, man/usermod.8.xml:
groupadd.8, groupmod.8, login.1, useradd.8, userdel.8, usermod.8: grammar
mistakes and other correctstions (by Schulenberg <bensberg@justemail.net>).
2007-10-07 14:57:03 +00:00
2007-01-16 Tomasz Kłoczko <kloczek@pld.org.pl>
* NEWS, src/usermod.c:
fixed handle -a option in usermod (by Benno Schulenberg <bensberg@justemail.net>).
2007-10-07 14:57:03 +00:00
2006-12-15 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/sv/sv.po:
more UTF8 fixe (by Mikael Magnusson <mikma@users.sourceforge.net>).
* man/sv/sv.po:
UTF8 fixes (by Mikael Magnusson <mikma@users.sourceforge.net>).
2007-10-07 14:57:03 +00:00
2006-11-19 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/pl/Makefile.am, man/pl/chgpassw.8, man/pl/chpasswd.8, man/pl/pl.po:
translation chpasswd.8 and chgpassw.8 finished.
2007-10-07 14:57:03 +00:00
2006-11-12 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/pl/pl.po: resolve fuzzy entries.
* contrib/adduser.c, contrib/groupmems.shar, po/it.po, src/groupmems.c, src/usermod.c, man/chfn.1.xml, man/chsh.1.xml, man/de/de.po, man/fr/fr.po, man/groupmems.8.xml, man/passwd.1.xml, man/pl/pl.po, man/ru/ru.po, man/shadow.3.xml, man/su.1.xml, man/sv/sv.po:
spelling fixes 's/super user/superuser/' (by Benno Schulenberg <bensberg@justemail.net>).
* man/sv/sv.po, man/de/de.po, man/fr/fr.po, man/pl/pl.po, man/ru/ru.po:
run "make update-po".
* man/newusers.8.xml, man/su.1.xml:
fixed wrong word, a few typos, some grammar mistakes, and puts in a comma here
and there for clarity (by Benno Schulenberg <bensberg@justemail.net>).
* man/pl/groupmod.8, man/pl/chage.1, man/pl/chsh.1, man/pl/lastlog.8, man/pl/vipw.8:
regenerated.
* man/de/de.po: run "make update-po".
* man/Makefile.am:
added de to LINGUAS but man/de/de.po still need many work.
2007-10-07 14:57:03 +00:00
2006-11-04 Tomasz Kłoczko <kloczek@pld.org.pl>
* src/useradd.c: indent code.
* NEWS, src/useradd.c:
improved auditing support (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=211659).
2007-10-07 14:57:03 +00:00
2006-11-03 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
run "make update-po".
* NEWS, po/nl.po:
updated (by cobaco (aka Bart Cornelis) <cobaco@skolelinux.no>).
* man/fr/fr.po, man/pl/pl.po, man/ru/ru.po, man/sv/sv.po:
"make update-po".
2007-10-07 14:57:03 +00:00
2006-11-02 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/su.1.xml:
added sg(1) to the SEE ALSO section (Debian Bug#396690).
2007-10-07 14:57:03 +00:00
2006-10-30 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/newusers.8.xml: clarify pw_gid fileld content description.
* man/it/Makefile.am, man/sv/Makefile.am:
s/man_nonpam/man_nopam/ (merged 498_man_nonpam_undefined Debian patch).
* po/nl.po:
fixed https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=212892
2007-10-07 14:57:03 +00:00
2006-10-28 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/newusers.8.xml: there is no pw_age fileld in passwd.
* man/fr/fr.po:
Fix an error in the passwd.1 French translation (fixed Debian bug #395537).
* man/chfn.1.xml, man/chgpasswd.8.xml, man/chpasswd.8.xml, man/chsh.1.xml, man/expiry.1.xml, man/fr/fr.po, man/gpasswd.1.xml, man/groupmems.8.xml, man/groupmod.8.xml, man/groups.1.xml, man/grpck.8.xml, man/id.1.xml, man/login.1.xml, man/newgrp.1.xml, man/newusers.8.xml, man/nologin.8.xml, man/passwd.1.xml, man/pl/pl.po, man/pwck.8.xml, man/pwconv.8.xml, man/su.1.xml, man/sulogin.8.xml, man/sv/sv.po, man/vipw.8.xml:
cleanups on begin DESCRIPTION section.
* man/pl/pl.po: typos.
2007-10-07 14:57:03 +00:00
2006-10-13 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/pl.po: cleanups.
2007-10-07 14:57:03 +00:00
2006-10-07 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/pl/pl.po: more translations.
* NEWS:
UTF-8 corrections (by Benno Schulenberg <bensberg@justemail.net>).
2007-10-07 14:57:03 +00:00
2006-10-05 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/groupdel.8.xml: added description for exit code 6.
2007-10-07 14:57:03 +00:00
2006-08-16 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/de/de.po: copy & paste some msgid to msgstr.
* man/de/de.po:
2007-10-07 14:57:03 +00:00
kill some fuzzy (by Nicolas François <nicolas.francois@centraliens.net>).
2007-10-07 14:57:03 +00:00
2006-08-15 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/fr/fr.po, man/pl/pl.po, man/ru/ru.po, man/sv/sv.po, man/passwd.1.xml:
s/change password/password change/ in passwd(1) (by Simon Brandmair <sbrandmair@gmx.net>).
* man/de/de.po:
initial version based on partial translations only for passwd(1) by
Simon Brandmair <sbrandmair@gmx.net>.
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c, src/useradd.c, src/userdel.c, src/usermod.c:
flush nscd cashes after close /etc/{group,passwd} files.
2007-10-07 14:57:03 +00:00
2006-08-14 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/tl.po: updated (by Eric Pareja <xenos@upm.edu.ph>).
2007-10-07 14:57:03 +00:00
2006-08-07 Tomasz Kłoczko <kloczek@pld.org.pl>
* NEWS, po/ja.po: updated (by Takeo Nakano <nakano@webmasters.gr.jp>).
2007-10-07 14:57:03 +00:00
2006-08-03 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/fr/Makefile.am:
removed whitespaces following trailing backslashes.
* NEWS, configure.in: release 4.0.18.1.
* man/Makefile.am, man/fr/Makefile.am, man/it/Makefile.am, man/ja/Makefile.am, man/pl/Makefile.am, man/ru/Makefile.am, man/sv/Makefile.am, NEWS:
fixed missing man pages in dist tar ball necessary on build when PAM is disabled.
* NEWS, src/groupmems.c:
fixed groupmems compilation when PAM is disabled (by Johannes Winkelmann <jw@smts.ch>).
* configure.in:
typo s/followig/following/ (by Johannes Winkelmann <jw@smts.ch>).
2007-10-07 14:57:03 +00:00
2006-08-01 Tomasz Kłoczko <kloczek@pld.org.pl>
* NEWS: release date corrected.
* NEWS, src/su.c:
fixed set enviroment too early when using PAM, so move it to !USE_PAM
(patch submitted by Mike Frysinger <vapier@gentoo.org>).
2007-10-07 14:57:03 +00:00
2006-07-30 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/fr/chage.1, man/fr/chfn.1, man/fr/chpasswd.8, man/fr/chsh.1, man/fr/expiry.1, man/fr/faillog.5, man/fr/faillog.8, man/fr/gpasswd.1, man/fr/groupadd.8, man/fr/groupdel.8, man/fr/groupmod.8, man/fr/groups.1, man/fr/grpck.8, man/fr/gshadow.5, man/fr/lastlog.8, man/fr/limits.5, man/fr/login.1, man/fr/login.access.5, man/fr/login.defs.5, man/fr/logoutd.8, man/fr/newgrp.1, man/fr/newusers.8, man/fr/passwd.1, man/fr/passwd.5, man/fr/porttime.5, man/fr/pwck.8, man/fr/pwconv.8, man/fr/sg.1, man/fr/shadow.3, man/fr/shadow.5, man/fr/su.1, man/fr/suauth.5, man/fr/useradd.8, man/fr/userdel.8, man/fr/usermod.8, man/fr/vipw.8, NEWS:
fr man pages are now up to date.
* man/fr/fr.po:
more updates for 4.0.18 (by Nicolas François <nicolas.francois@centraliens.net>).
* man/fr/fr.po:
updated for 4.0.18 (by Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>).
2007-10-07 14:57:03 +00:00
2006-07-28 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, NEWS, po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po:
updated.
* src/useradd.c, src/usermod.c:
fixed UID/GID overflow (fixed http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198920).
Fixed expiredate/inactive/mindays/warndays/maxdays overflow (simillar to RH#198920).
* src/passwd.c:
fixed inactive/mindays/warndays/maxdays overflow (similar to RH#198920).
* src/groupadd.c, src/groupmod.c:
fixed GID overflow (fixed http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198920).
2007-10-07 14:57:03 +00:00
2006-07-27 Tomasz Kłoczko <kloczek@pld.org.pl>
* src/.cvsignore: groupmems added.
2007-10-07 14:57:03 +00:00
2006-07-24 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/fr.po:
updated for 4.0.18 (by ean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>).
* po/uk.po: break lines longer than 80 cols and add missing \n.
* po/uk.po:
updated for 4.0.18 (by Eugeniy Meshcheryakov <eugen@univ.kiev.ua>).
* man/pl/pl.po, man/ru/ru.po, man/sv/sv.po, man/chgpasswd.8.xml, man/chpasswd.8.xml, man/fr/fr.po:
s/instead DES/instead of DES/
* NEWS: sv man pages are partially translated.
2007-10-07 14:57:03 +00:00
2006-07-23 Tomasz Kłoczko <kloczek@pld.org.pl>
* src/groupmems.c: fix compilation warnings.
* po/ko.po: use \t.
* po/nl.po: break lines longer than 80 cols and add missing \n.
2007-10-07 14:57:03 +00:00
2006-07-22 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/ru/faillog.5: regenerated.
* po/ko.po: updated for 4.0.18 (by Changwoo Ryu <cwryu@debian.org>).
2007-10-07 14:57:03 +00:00
2006-07-20 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/faillog.5.xml, man/fr/fr.po, man/pl/pl.po, man/ru/ru.po, man/sv/sv.po:
added <refmiscinfo class="sectdesc"> tag for faillog.5.xml.
* man/sv/Attic/grupper.1: removed.
* man/sv/Makefile.am, man/sv/chage.1, man/sv/chfn.1, man/sv/chgpasswd.8, man/sv/chpasswd.8, man/sv/chsh.1, man/sv/expiry.1, man/sv/faillog.5, man/sv/faillog.8, man/sv/gpasswd.1, man/sv/groupadd.8, man/sv/groupdel.8, man/sv/groupmems.8, man/sv/groupmod.8, man/sv/groups.1, man/sv/grpck.8, man/sv/gshadow.5, man/sv/lastlog.8, man/sv/limits.5, man/sv/login.1, man/sv/login.access.5, man/sv/login.defs.5, man/sv/logoutd.8, man/sv/newgrp.1, man/sv/newusers.8, man/sv/nologin.8, man/sv/passwd.1, man/sv/passwd.5, man/sv/porttime.5, man/sv/pwck.8, man/sv/pwconv.8, man/sv/sg.1, man/sv/shadow.3, man/sv/shadow.5, man/sv/su.1, man/sv/suauth.5, man/sv/sv.po, man/sv/useradd.8, man/sv/userdel.8, man/sv/usermod.8, man/sv/vipw.8:
corrected text charset and other minor cleanups (by Daniel Nylander <info@danielnylander.se>).
* po/tr.po: break lines longer than 80 cols.
* po/tr.po:
updated for 4.0.18 (by Mehmet TURKER <mturker@innova.com.tr>).
* configure.in, man/Makefile.am, man/sv/Makefile.am:
fixes for "make {dist|distchec}" and sv man pages.
* man/sv/Attic/grupper.1, man/sv/groupmems.8, man/sv/groupmod.8, man/sv/grpck.8, man/sv/grpconv.8, man/sv/grpunconv.8, man/sv/gshadow.5, man/sv/lastlog.8, man/sv/limits.5, man/sv/login.1, man/sv/login.access.5, man/sv/login.defs.5, man/sv/logoutd.8, man/sv/newgrp.1, man/sv/newusers.8, man/sv/nologin.8, man/sv/passwd.1, man/sv/passwd.5, man/sv/porttime.5, man/sv/pwck.8, man/sv/pwconv.8, man/sv/pwunconv.8, man/sv/sg.1, man/sv/shadow.3, man/sv/shadow.5, man/sv/su.1, man/sv/suauth.5, man/sv/sv.po, man/sv/useradd.8, man/sv/userdel.8, man/sv/usermod.8, man/sv/vigr.8, man/sv/vipw.8, NEWS, man/Makefile.am, man/sv/Makefile.am, man/sv/chage.1, man/sv/chfn.1, man/sv/chgpasswd.8, man/sv/chpasswd.8, man/sv/chsh.1, man/sv/expiry.1, man/sv/faillog.5, man/sv/faillog.8, man/sv/getspnam.3, man/sv/gpasswd.1, man/sv/groupadd.8, man/sv/groupdel.8:
full sv man pages set added (by Daniel Nylander <info@danielnylander.se>).
This man pages are translated using new XML/xml2po/gettext infrastructure.
* po/pl.po: updated for 4.0.18.
2007-10-07 14:57:03 +00:00
2006-07-19 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/pt.po:
updated for 4.0.18 (by Miguel Figueiredo <mfigueiredo@gmail.com>).
* po/gl.po, NEWS:
updated for 4.0.18 (by Jacobo Tarrio <jacobo@tarrio.org>).
* NEWS, po/eu.po:
updated for 4.0.18 (by Piarres Beobide <pi@beobide.net>).
* man/ru/chsh.1, man/ru/faillog.5, man/ru/groupmems.8, man/ru/groupmod.8, man/ru/ru.po, man/ru/su.1, man/ru/useradd.8, man/ru/usermod.8, man/ru/vipw.8, NEWS, po/ru.po:
updated for 4.0.18 (by Yuri Kozlov <kozlov.y@gmail.com>).
* po/vi.po, NEWS:
updated for 4.0.18 (by Clytie Siddall <clytie@riverland.net.au>).
* NEWS, po/cs.po:
updated for 4.0.18 (by Miroslav Kure <kurem@upcase.inf.upol.cz>).
* NEWS, po/sv.po:
updated for 4.0.18 (by Daniel Nylander <info@danielnylander.se>).
* NEWS, po/ca.po:
updated for 4.0.18 (by Guillem Jover <guillem@debian.org>).
2007-10-07 14:57:03 +00:00
2006-07-18 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/hu.po: cleanups.
* NEWS, po/da.po:
updated for 4.0.18 (by Claus Hindsgaul <claus.hindsgaul@gmail.com>).
* po/hu.po, NEWS: updated for 4.0.18 (by SZERVÁC Attila <sas@321.hu>).
* NEWS: typos.
* man/ru/ru.po, man/fr/fr.po, man/pl/pl.po: run "make update-po".
* man/su.1.xml: fixes in <refsynopsisdiv>.
* src/groupmems.c: indent soutrce code.
* src/groupmems.c: use shadow Copyright.
* po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, po/POTFILES.in, po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po:
added src/groupmems.c to POTFILES.in.
* NEWS, etc/pam.d/Makefile.am, etc/pam.d/groupmems, man/Makefile.am, man/groupmems.8.xml, src/Makefile.am, src/groupmems.c:
groupmems rewrited for use PAM and getopt_long() nad now it is enabled
for build and install (patch by George Kraft <gk4@swbell.net>).
* NEWS, configure.in: start prepare for 4.0.18.
2007-10-07 14:57:03 +00:00
2006-07-17 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
run "make update-po" and some cleanups (added missing \n and use tabs instead spaces).
* src/su.c: s#[login]#[LOGIN]# in help message.
* man/useradd.8.xml:
added missing --<foo> long options names in "Changing the default values" section.
* po/tr.po: updated (by Murat Şenel <muratasenel@gmail.com>).
2007-10-07 14:57:03 +00:00
2006-07-16 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/fr/fr.po, man/pl/pl.po, man/ru/ru.po: updated.
* man/useradd.8.xml: added newusers(8) to SEE ALSO section.
* etc/login.defs:
removed GETPASS_ASTERISKS (patch by Mike Frysinger <vapier@gentoo.org>).
2007-10-07 14:57:03 +00:00
2006-07-15 Tomasz Kłoczko <kloczek@pld.org.pl>
* NEWS, man/pl/chsh.1, man/pl/pl.po: pl chage(1): translation finished.
* NEWS:
s#fix by Mike Frysinger <vapier@gentoo.org>)#(patch by Ulrich Mueller <ulm@kph.uni-mainz.de>; http://bugs.gentoo.org/139966#
* NEWS, configure.in:
S/Key: removed assign getpass() to libshadow_getpass() on autoconf level
(fix by Mike Frysinger <vapier@gentoo.org>).
2007-10-07 14:57:03 +00:00
2006-07-14 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/vipw.8.xml: make options <replaceable> in SYNOPSIS.
* po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, src/groupadd.c:
s/group/GROUP/ in groupadd help message.
* src/su.c (main):
move **envcp declaration to #ifdef USE_PAM (fixed warning about unused
variable when shadow is builded with PAM didabled).
* man/pl/pl.po, NEWS, man/pl/chage.1: pl chage(1) translation finished.
* man/fr/fr.po, man/pl/pl.po, man/ru/ru.po: updated.
* man/chsh.1.xml: updated after rewrite chsh for use getopt_long().
* po/pl.po: kill fuzzy.
2007-10-07 14:57:03 +00:00
2006-07-13 Tomasz Kłoczko <kloczek@pld.org.pl>
* po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, src/chsh.c, po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po:
one \t more in help message.
* po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po, po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po:
updated.
* NEWS, src/chsh.c: chsh rewrited for use getopt_long().
2007-10-07 14:57:03 +00:00
2006-07-12 Tomasz Kłoczko <kloczek@pld.org.pl>
* man/pl/groupmod.8, man/pl/pl.po: finish translation groupmod(8).
* man/fr/fr.po, man/groupmod.8.xml, man/pl/groupmod.8, man/pl/pl.po, man/ru/ru.po:
cleanups in groupmod(8).
* man/fr/fr.po, man/pl/pl.po, man/ru/ru.po, man/usermod.8.xml, src/usermod.c, NEWS:
back to previouse usermod -a option sematics and clarify -a behavior
on documentation level (by Greg Schafer <gschafer@zip.com.au>).
* man/fr/fr.po, man/groupmod.8.xml, man/pl/pl.po, man/ru/ru.po:
updated groupmod man page.
2007-10-07 14:57:03 +00:00
2006-07-11 Tomasz Kłoczko <kloczek@pld.org.pl>
* src/groupmod.c: too many \t in help message.
* man/ru/chage.1, man/ru/passwd.1, man/ru/ru.po, man/chage.1.xml, man/fr/fr.po, man/passwd.1.xml, man/pl/pl.po:
updated.
* po/nb.po, po/ne.po, po/nl.po, po/nn.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sq.po, po/sv.po, po/tl.po, po/tr.po, po/uk.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, po/bs.po, po/ca.po, po/cs.po, po/da.po, po/de.po, po/dz.po, po/el.po, po/es.po, po/eu.po, po/fi.po, po/fr.po, po/gl.po, po/he.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/km.po, po/ko.po:
run "make update-po".