nekral-guest [Sat, 11 Apr 2009 16:23:21 +0000 (16:23 +0000)]
* libmisc/getgr_nam_gid.c: Added support for NULL argument.
* libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().
nekral-guest [Sat, 11 Apr 2009 16:08:00 +0000 (16:08 +0000)]
Tag one of the remaining strtol.
nekral-guest [Sat, 11 Apr 2009 16:00:45 +0000 (16:00 +0000)]
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
accounts, return the first unused ID, starting from the max value.
This could be useful later to increase the static IDs range.
nekral-guest [Sat, 11 Apr 2009 15:34:10 +0000 (15:34 +0000)]
* NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
SELinux user for user's login.
* NEWS, src/usermod.c, man/usermod.8.xml: Likewise.
* libmisc/system.c, libmisc/Makefile.am, lib/prototypes.h: Added
safe_system(). Used to run semanage.
* lib/prototypes.h, libmisc/copydir.c: Make a
selinux_file_context() an extern function.
* libmisc/copydir.c: Reset SELinux to create files with default
contexts at the end of copy_tree().
* NEWS, src/userdel.c: Delete the SELinux user mapping for user's
login.
nekral-guest [Sat, 11 Apr 2009 14:55:49 +0000 (14:55 +0000)]
* src/useradd.c (get_defaults): Close the default file after the
default values were read.
bubulle [Sat, 11 Apr 2009 13:53:41 +0000 (13:53 +0000)]
Slovak translation updated
nekral-guest [Sat, 11 Apr 2009 13:00:32 +0000 (13:00 +0000)]
Re-indent.
nekral-guest [Fri, 10 Apr 2009 22:35:43 +0000 (22:35 +0000)]
* lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.
nekral-guest [Fri, 10 Apr 2009 22:35:37 +0000 (22:35 +0000)]
* po/POTFILES.in: Added missing files. Sorted.
nekral-guest [Fri, 10 Apr 2009 22:35:32 +0000 (22:35 +0000)]
Removed declaration of ep. No more used.
Re-indent.
nekral-guest [Fri, 10 Apr 2009 22:35:26 +0000 (22:35 +0000)]
* lib/getdef.c: Use getlong instead of strtol/strtoul.
* libmisc/getlong, lib/getlong.c, libmisc/Makefile.am,
lib/Makefile.am: getlong.c moved from libmisc/ to lib/.
nekral-guest [Fri, 10 Apr 2009 22:35:19 +0000 (22:35 +0000)]
Removed DONE entry.
nekral-guest [Fri, 10 Apr 2009 22:35:14 +0000 (22:35 +0000)]
* lib/shadow.c: Replace strtol() by getlong(). Also detect more
issues in a numerical shadow entry field.
nekral-guest [Fri, 10 Apr 2009 22:35:07 +0000 (22:35 +0000)]
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
nekral-guest [Fri, 10 Apr 2009 22:35:01 +0000 (22:35 +0000)]
Revert " * lib/sgetspent.c: Removed (is not used / compiled) anymore."
This reverts commit
dbeb402f0b0befd8c48b68d53277e1bd1b5f751b.
nekral-guest [Fri, 10 Apr 2009 22:34:55 +0000 (22:34 +0000)]
* lib/sgetspent.c: Removed (is not used / compiled) anymore.
nekral-guest [Fri, 10 Apr 2009 22:34:49 +0000 (22:34 +0000)]
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
issues in a numerical shadow entry field.
nekral-guest [Fri, 10 Apr 2009 22:34:42 +0000 (22:34 +0000)]
* src/chage.c: expdays renamed to expdate. It is a date, even if
expressed in a number of days since Jan 1, 1970.
* src/chage.c: Likewise: lastday renamed to lstchgdate. Also fix
the --lastday documentation.
nekral-guest [Fri, 10 Apr 2009 22:34:36 +0000 (22:34 +0000)]
* src/chage.c: More strtol() replaced by getlong().
nekral-guest [Fri, 10 Apr 2009 22:34:29 +0000 (22:34 +0000)]
* lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is
NOT defined.
nekral-guest [Fri, 10 Apr 2009 22:34:23 +0000 (22:34 +0000)]
* src/passwd.c: Replace getnumber() by getlong(). This permits to
get rid of another strtol().
nekral-guest [Fri, 10 Apr 2009 22:34:17 +0000 (22:34 +0000)]
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
for strtol and errno, and do not include "defines.h" (not needed).
nekral-guest [Fri, 10 Apr 2009 22:34:10 +0000 (22:34 +0000)]
* src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c,
libmisc/Makefile.am, lib/prototypes.h: Moved getgr_nam_gid() from
src/useradd.c and src/usermod.c to libmisc/getgr_nam_gid.c.
nekral-guest [Fri, 10 Apr 2009 22:34:04 +0000 (22:34 +0000)]
* src/useradd.c: Get rid of strtol.
* src/useradd.c: Provide better warning in case a default GROUP or
INACTIVE value is not valid in /etc/default/useradd.
nekral-guest [Fri, 10 Apr 2009 22:33:57 +0000 (22:33 +0000)]
* src/useradd.c: Re-indent.
nekral-guest [Fri, 10 Apr 2009 22:33:50 +0000 (22:33 +0000)]
* src/useradd.c: Use getlong instead of get_number.
nekral-guest [Fri, 10 Apr 2009 22:33:43 +0000 (22:33 +0000)]
* src/usermod.c: Re-indent.
* src/usermod.c: Specifying a inactivity value < -1 is not valid.
nekral-guest [Sun, 5 Apr 2009 23:52:46 +0000 (23:52 +0000)]
* po/*.po, man/po/*.po: Updated PO files.
nekral-guest [Sun, 5 Apr 2009 23:50:58 +0000 (23:50 +0000)]
Added todo items.
nekral-guest [Sun, 5 Apr 2009 22:35:12 +0000 (22:35 +0000)]
* configure.in: Prepare the next 4.1.3 release.
nekral-guest [Sun, 5 Apr 2009 22:33:00 +0000 (22:33 +0000)]
* libmisc/setugid.c libmisc/age.c (setup_uid_gid): is_console is
never set ifndef USE_PAM. Change the prototype of setup_uid_gid()
when USE_PAM is not defined. This permits to remove add_groups
from PAM builds. setup_uid_gid is already subject to
HAVE_INITGROUPS.
nekral-guest [Sun, 5 Apr 2009 22:29:42 +0000 (22:29 +0000)]
* lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to
ifndef USE_PAM.
* lib/prototypes.h: Remove the declaration of add_cons_grps(). The
function does not exist.
* libmisc/age.c (setup_uid_gid): is_console is never set ifndef
USE_PAM. Change the prototype of setup_uid_gid() when USE_PAM is
not defined. This permits to remove add_groups from PAM builds.
setup_uid_gid is already subject to HAVE_INITGROUPS.
* libmisc/pwd2spwd.c (pwd_to_spwd): pwd_to_spwd() is not used in
PAM builds.
nekral-guest [Sun, 5 Apr 2009 22:04:31 +0000 (22:04 +0000)]
* src/passwd.c: do_update_age is only used ifndef USE_PAM. Make it
more explicit.
nekral-guest [Sun, 5 Apr 2009 22:02:50 +0000 (22:02 +0000)]
* src/useradd.c: Set errno to 0 before calling strtol.
nekral-guest [Sun, 5 Apr 2009 22:02:00 +0000 (22:02 +0000)]
* libmisc/isexpired.c: If there are no shadow entry, there is no
need to convert the password entry to a shadow entry. The password
is valid.
nekral-guest [Sun, 5 Apr 2009 21:56:37 +0000 (21:56 +0000)]
Fix typo.
nekral-guest [Sun, 5 Apr 2009 21:23:55 +0000 (21:23 +0000)]
* man/usermod.8.xml: Split some paragraphs into smaller units.
nekral-guest [Sun, 5 Apr 2009 21:23:42 +0000 (21:23 +0000)]
Updated copyright dates.
nekral-guest [Sun, 5 Apr 2009 21:23:35 +0000 (21:23 +0000)]
* man/shadow.5.xml: Rewrote to mention the meaning of special
values.
nekral-guest [Sun, 5 Apr 2009 21:23:27 +0000 (21:23 +0000)]
* libmisc/pwd2spwd.c, src/chpasswd.c, src/newusers.c,
src/passwd.c, src/pwck.c, src/pwconv.c, src/useradd.c,
src/usermod.c: On Jan 01, 1970, do not set the sp_lstchg field to
0 (which means that the password shall be changed during the next
login), but use -1 (password aging disabled).
* src/passwd.c: Do not check sp_min if sp_lstchg is null or -1.
nekral-guest [Sun, 5 Apr 2009 21:23:17 +0000 (21:23 +0000)]
* src/chage.c: When no shadow entry exist, thedefault sp_lstchg
value should be -1 (no aging) rather than 0 (password must be
changed).
* src/chage.c: For password expiration and inactivity, indicate
that the password must be changed when sp_lstchg is null rather
than indicating that expiration and inactivity are not enabled.
nekral-guest [Sun, 5 Apr 2009 21:23:06 +0000 (21:23 +0000)]
* libmisc/isexpired.c: Document the isexpired return value.
nekral-guest [Sun, 5 Apr 2009 21:22:53 +0000 (21:22 +0000)]
* libmisc/age.c: Return a specific message when sp_lstchg is null.
nekral-guest [Sun, 22 Mar 2009 12:32:40 +0000 (12:32 +0000)]
Added missing space at the end of the question.
nekral-guest [Sat, 21 Mar 2009 20:45:35 +0000 (20:45 +0000)]
Remove unused variable.
nekral-guest [Sat, 21 Mar 2009 20:29:58 +0000 (20:29 +0000)]
* lib/sgetpwent.c, lib/sgetgrent.c: Use get_uid and get_gid to
validate the UIDs or GIDs instead of atoi/strtol.
nekral-guest [Sat, 21 Mar 2009 20:24:37 +0000 (20:24 +0000)]
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
lib/get_gid.c, lib/get_uid.c, lib/Makefile.am: get_uid.c and
get_gid.c moved from libmisc/ to lib/.
nekral-guest [Sat, 21 Mar 2009 19:42:48 +0000 (19:42 +0000)]
* src/grpck.c (check_members): When a member is removed, do not
increase the index.
* src/grpck.c: Fix typo in messages and comments.
nekral-guest [Sat, 21 Mar 2009 19:32:14 +0000 (19:32 +0000)]
* libmisc/sulog.c: Likewise for the su log.
nekral-guest [Sat, 21 Mar 2009 19:28:02 +0000 (19:28 +0000)]
* src/vipw.c: Likewise for the backup file.
nekral-guest [Sat, 21 Mar 2009 19:25:02 +0000 (19:25 +0000)]
* src/usermod.c: Likewise for the faillog and lastlog file.
nekral-guest [Sat, 21 Mar 2009 19:18:06 +0000 (19:18 +0000)]
* src/useradd.c: Likewise for the default file, faillog, lastlog,
and mail spool.
nekral-guest [Sat, 21 Mar 2009 19:12:00 +0000 (19:12 +0000)]
* lib/commonio.c: Call fsync before closing the backup file. This
ensures that the backup file is flushed to the storage medium.
nekral-guest [Sun, 15 Mar 2009 21:43:24 +0000 (21:43 +0000)]
Fixed TODO item.
nekral-guest [Sun, 15 Mar 2009 21:38:46 +0000 (21:38 +0000)]
Added TODO items.
nekral-guest [Sun, 15 Mar 2009 21:38:08 +0000 (21:38 +0000)]
* src/groupmod.c: Embed gshadow related cleanup in #ifdef
SHADOWGRP.
nekral-guest [Sun, 15 Mar 2009 21:34:20 +0000 (21:34 +0000)]
* src/usermod.c: get_number() replaced by getlong().
* src/usermod.c: When the user is renamed, make sure we do not
override an user with the same name (in passwd or shadow).
nekral-guest [Sun, 15 Mar 2009 21:32:26 +0000 (21:32 +0000)]
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
stack only when the shadow group file is present.
nekral-guest [Sun, 15 Mar 2009 21:29:16 +0000 (21:29 +0000)]
* NEWS, src/userdel.c: Make sure the user exists in the shadow
database before calling spw_remove().
* NEWS, src/userdel.c: When the user's group is removed, make sure
the group is in the gshadow database before calling sgr_remove().
* src/userdel.c: Improve warning's wording.
nekral-guest [Sun, 15 Mar 2009 21:15:48 +0000 (21:15 +0000)]
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not
desynchronized with the cleanup functions.
* libmisc/cleanup.c: cleanup_function_args is an array of void
pointer, not strings.
nekral-guest [Sun, 15 Mar 2009 21:12:57 +0000 (21:12 +0000)]
* libmisc/find_new_gid.c: Fix find_new_gid() the current group
database was not taken into account.
nekral-guest [Sun, 15 Mar 2009 21:10:35 +0000 (21:10 +0000)]
* libmisc/addgrps.c: Fix compilation warnings.
nekral-guest [Sat, 14 Mar 2009 16:18:06 +0000 (16:18 +0000)]
* man/po/Makefile.in.in: xml2po cannot exclude one entity for
expansion. Make sure config.xml does not exist when the POT file
is created in order to keep the configurations in the POT file
* man/generate_translations.mak: make sure config.xml does not
exist neither when the translated XML is generated. Add the
missing %config; (strip out by xml2po). and make sure config.xml
is present when the translated manpage is generated.
* man/generate_mans.mak: config.xml is needed for the generation
of manpages (already in the .deps for the English manpages, but
needed for the translations).
* man/Makefile.am: Added missing CREATE_HOME.xml.
nekral-guest [Sat, 14 Mar 2009 13:29:55 +0000 (13:29 +0000)]
* man/generate_mans.deps: Added Makefile dependency rules.
nekral-guest [Sat, 14 Mar 2009 13:21:15 +0000 (13:21 +0000)]
Updated TODO list.
nekral-guest [Sat, 14 Mar 2009 13:20:25 +0000 (13:20 +0000)]
* etc/login.defs: Added note for PAM enabled configurations.
nekral-guest [Sat, 14 Mar 2009 13:18:28 +0000 (13:18 +0000)]
Added config.xml to the list of ignored files.
nekral-guest [Sat, 14 Mar 2009 13:16:55 +0000 (13:16 +0000)]
* man/Makefile.am: Compute the dependencies for building the
manpages.
nekral-guest [Sat, 14 Mar 2009 13:13:47 +0000 (13:13 +0000)]
* libmisc/addgrps.c: Fix warnings.
nekral-guest [Sat, 14 Mar 2009 13:08:49 +0000 (13:08 +0000)]
* man/po/fr.po: Added missing space.
nekral-guest [Sat, 14 Mar 2009 11:11:04 +0000 (11:11 +0000)]
* man/lastlog.8.xml: Document that there might be entries, for
deleted users, that are not displayed.
nekral-guest [Sat, 14 Mar 2009 11:09:57 +0000 (11:09 +0000)]
* man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in
case SHA crypt is not supported.
nekral-guest [Sat, 14 Mar 2009 11:08:39 +0000 (11:08 +0000)]
* man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and
vigr.
nekral-guest [Fri, 13 Mar 2009 23:17:43 +0000 (23:17 +0000)]
* man/login.defs.5.xml: Indicate that sg uses the same variables
as newgrp.
* man/login.defs.5.xml: vipw does not use any variable.
* man/login.defs.5.xml: In PAM enabled configurations, login still
uses some login.defs variables.
nekral-guest [Fri, 13 Mar 2009 23:14:18 +0000 (23:14 +0000)]
* man/usermod.8.xml: use a <replaceable> instead of a
<emphasis remap='I'>.
nekral-guest [Fri, 13 Mar 2009 23:12:06 +0000 (23:12 +0000)]
* man/newusers.8.xml: Document the behavior of newusers for each
field.
* man/newusers.8.xml: Do not add the note on PAM on non-PAM
enabled configurations.
nekral-guest [Fri, 13 Mar 2009 22:49:20 +0000 (22:49 +0000)]
* src/faillog.c: Added support for the specification of a range of
users with -u.
* src/faillog.c: Do not call print_one() for users which do not
exist.
* src/faillog.c: Make sure the user's entry is not outside the
faillog file and initialize the faillog structure in that case.
* src/faillog.c: Move print_one() closer to print().
* src/faillog.c: reset(), setmax(), set_locktime() can also change
entries of user which do not exist.
* src/faillog.c: reset(), setmax() and set_locktime() shall not
create entries for users which have no entries if the value has to
be set to 0.
* src/faillog.c: reset(), setmax() and set_locktime(): better
handling of users whose entry is outside the faillog file.
* src/faillog.c: Improved option handling. Options can now be
specified in any order.
* src/faillog.c: Improved warnings when options are not
compatible or when the faillog cannot be open with the right mode.
* src/faillog.c: Only fstat the faillog file once.
* man/faillog.8.xml: Improved documentation.
nekral-guest [Fri, 13 Mar 2009 22:30:38 +0000 (22:30 +0000)]
* src/useradd.c, man/useradd.8.xml: Added long name for the -l
option: --no-log-init.
nekral-guest [Fri, 13 Mar 2009 22:28:27 +0000 (22:28 +0000)]
* src/chpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time.
* src/chgpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time.
* src/chgpasswd.c: Fix the test for getlong() failure.
nekral-guest [Fri, 13 Mar 2009 22:26:35 +0000 (22:26 +0000)]
* src/newusers.c: Make sure the SHA related variables are not
compiled when disabled at configuration time.
* src/newusers.c: Added FIXME
nekral-guest [Fri, 13 Mar 2009 22:21:26 +0000 (22:21 +0000)]
* src/gpasswd.c: Remove the documentation of options from the
main() documentation. It will always be outdated here.
nekral-guest [Fri, 13 Mar 2009 22:20:20 +0000 (22:20 +0000)]
* src/lastlog.c: lastlog variable renamed to ll to avoid name
clash with the structure.
* src/lastlog.c: check the offset in print_one() so that it is
used for the display of one entry or a set of entries.
* src/lastlog.c: Do not loop over the whole user database when -u
is used with a single user.
* src/lastlog.c: Check the size of the lastlog file so that we
can identify failures to read.
nekral-guest [Fri, 13 Mar 2009 19:17:24 +0000 (19:17 +0000)]
* libmisc/salt.c: Removed l64a prototype. The libc declaration is
non static, but the internal definition is static.
nekral-guest [Sun, 8 Mar 2009 23:30:56 +0000 (23:30 +0000)]
Add TODO item for the testsuite.
nekral-guest [Sun, 8 Mar 2009 23:30:25 +0000 (23:30 +0000)]
Compile fixes. Fixes warnings.
nekral-guest [Sun, 8 Mar 2009 23:29:46 +0000 (23:29 +0000)]
* src/gpasswd.c: log_gpasswd_success_gshadow only exists ifdef
SHADOWGRP.
nekral-guest [Sun, 8 Mar 2009 20:43:15 +0000 (20:43 +0000)]
* NEWS, src/newusers.c, src/usermod.c, src/useradd.c,
src/groupmod.c, src/groupadd.c: Make sure no user or group are
created with an ID set to -1.
nekral-guest [Sun, 8 Mar 2009 20:29:22 +0000 (20:29 +0000)]
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
to -1.
nekral-guest [Sun, 8 Mar 2009 20:28:55 +0000 (20:28 +0000)]
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
to -1.
nekral-guest [Sun, 8 Mar 2009 20:26:56 +0000 (20:26 +0000)]
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
lib/prototypes.h: Added get_uid() and get_gid() to parse user and
group IDs.
nekral-guest [Sun, 8 Mar 2009 20:21:24 +0000 (20:21 +0000)]
* libmisc/getlong.c: Make sure the getlong argument is not empty.
nekral-guest [Sat, 7 Mar 2009 16:32:11 +0000 (16:32 +0000)]
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
of snprintf in one of the format's parameters.
nekral-guest [Sat, 7 Mar 2009 16:30:49 +0000 (16:30 +0000)]
* man/groupmems.8.xml: groupmems does not create new user.
nekral-guest [Sat, 7 Mar 2009 16:29:28 +0000 (16:29 +0000)]
Added TODO items.
nekral-guest [Tue, 3 Mar 2009 20:53:20 +0000 (20:53 +0000)]
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
Timur Birsh <taem@linukz.org>.
nekral-guest [Sun, 22 Feb 2009 23:23:15 +0000 (23:23 +0000)]
* 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.
nekral-guest [Tue, 27 Jan 2009 18:17:54 +0000 (18:17 +0000)]
* man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).
nekral-guest [Mon, 26 Jan 2009 22:03:37 +0000 (22:03 +0000)]
* 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.
nekral-guest [Wed, 21 Jan 2009 14:49:42 +0000 (14:49 +0000)]
- newusers should use the CREATE_HOME variable (and new options are needed)
- usermod
- the mode of new home directories should be set according to the
original mode. Does copy_tree does this?
nekral-guest [Mon, 19 Jan 2009 10:21:50 +0000 (10:21 +0000)]
* etc/login.defs: Improve the documentation of UMASK.