]> granicus.if.org Git - shadow/log
shadow
15 years agoFix typo ( ) and fix a compilation warning (wrong const).
nekral-guest [Tue, 21 Apr 2009 22:03:33 +0000 (22:03 +0000)]
Fix typo ( ) and fix a compilation warning (wrong const).

15 years agoFix typo.
nekral-guest [Tue, 21 Apr 2009 22:02:37 +0000 (22:02 +0000)]
Fix typo.

15 years agoAdded more comments to the changelog entry.
nekral-guest [Mon, 20 Apr 2009 14:06:06 +0000 (14:06 +0000)]
Added more comments to the changelog entry.

15 years ago * NEWS, src/lastlog.c: Fix regression causing empty reports.
nekral-guest [Mon, 20 Apr 2009 14:04:48 +0000 (14:04 +0000)]
* NEWS, src/lastlog.c: Fix regression causing empty reports.

15 years ago * src/login.c: Get rid of pwent. pwd is sufficient as long as it
nekral-guest [Mon, 20 Apr 2009 13:29:15 +0000 (13:29 +0000)]
* src/login.c: Get rid of pwent. pwd is sufficient as long as it
is always coming from xgetpwnam. There is no need to copy pwd to
pwent, this was not a good idea anyway as the strings from pwd
were not duplicated.
* src/login.c: Always free the pwd and spwd structure when we
retrieve a new one. This will clear the password of the previous
user from the memory.
* src/login.c: user_passwd is used to keep point to the password
of the user being authenticated.
* src/login.c: (non PAM) Fail if the user's entry cannot be found
after the user updated her password (if expire() requested an
update).
* src/login.c: If the user does not exist on the system, there is
no need to build a pwd structure (with shell).

15 years ago * src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
nekral-guest [Mon, 20 Apr 2009 13:12:09 +0000 (13:12 +0000)]
* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
Just call ttytype.

15 years agoRe-indent.
nekral-guest [Mon, 20 Apr 2009 13:10:20 +0000 (13:10 +0000)]
Re-indent.

15 years ago * src/login.c: Open the PAM session before pam_setcred and before
nekral-guest [Mon, 20 Apr 2009 12:54:17 +0000 (12:54 +0000)]
* src/login.c: Open the PAM session before pam_setcred and before
initgroups. This is more consistent with rfc86.0.

15 years ago * src/login.c: Added helper functions get_pam_user() and
nekral-guest [Mon, 20 Apr 2009 12:47:04 +0000 (12:47 +0000)]
* src/login.c: Added helper functions get_pam_user() and
get_failent_user().

15 years ago * src/login.c: Added parameter to check_nologin. This will help
nekral-guest [Mon, 20 Apr 2009 12:33:01 +0000 (12:33 +0000)]
* src/login.c: Added parameter to check_nologin. This will help
getting rid of the global pwent variable.

15 years ago * src/login.c: Added comments.
nekral-guest [Mon, 20 Apr 2009 12:27:27 +0000 (12:27 +0000)]
* src/login.c: Added comments.
* src/login.c: Close the user and group files before dropping root
privileges.

15 years ago * src/login.c: We do not need to keep the old umask. Discard the
nekral-guest [Mon, 20 Apr 2009 12:17:38 +0000 (12:17 +0000)]
* src/login.c: We do not need to keep the old umask. Discard the
umask() return value.

15 years ago * src/login.c: We do not need to keep the old umask. Discard the
nekral-guest [Mon, 20 Apr 2009 12:16:07 +0000 (12:16 +0000)]
* src/login.c: We do not need to keep the old umask. Discard the
umask() return value.

15 years ago * libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the
nekral-guest [Mon, 20 Apr 2009 11:48:59 +0000 (11:48 +0000)]
* libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the
hushed() prototype to take a username instead of a passwd
structure in argument. The passwd entry is retrieved withing
hushed().

15 years ago * libmisc/setugid.c: Updated comments.
nekral-guest [Mon, 20 Apr 2009 11:43:36 +0000 (11:43 +0000)]
* libmisc/setugid.c: Updated comments.

15 years ago * libmisc/failure.h, libmisc/failure.c, src/login.c: Added
nekral-guest [Mon, 20 Apr 2009 11:39:16 +0000 (11:39 +0000)]
* libmisc/failure.h, libmisc/failure.c, src/login.c: Added
username as first parameter of failtmp to avoid issues with
non-null terminated ut_user, unavailability of ut_user, incomplete
username (that should not happen currently).

15 years ago * libmisc/failure.h, libmisc/failure.c, src/login.c: Added
nekral-guest [Mon, 20 Apr 2009 11:37:41 +0000 (11:37 +0000)]
* libmisc/failure.h, libmisc/failure.c, src/login.c: Added
username as first parameter of failtmp to avoid issues with
non-null terminated ut_user, unavailability of ut_user, incomplete
username (that should not happen currently).

15 years ago * libmisc/ttytype.c: Add brackets and parenthesis.
nekral-guest [Mon, 20 Apr 2009 11:31:05 +0000 (11:31 +0000)]
* libmisc/ttytype.c: Add brackets and parenthesis.
* libmisc/ttytype.c: Avoid assignments in comparisons.

15 years ago * lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill
nekral-guest [Mon, 20 Apr 2009 11:29:17 +0000 (11:29 +0000)]
* lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill
the password fields with zeros before they are freed.

15 years ago * po/ko.po: Updated Korean translation.
nekral-guest [Sun, 19 Apr 2009 16:26:17 +0000 (16:26 +0000)]
* po/ko.po: Updated Korean translation.

15 years ago * NEWS, src/login.c: Also check if the authentication token of the
nekral-guest [Sun, 19 Apr 2009 16:22:17 +0000 (16:22 +0000)]
* NEWS, src/login.c: Also check if the authentication token of the
user has to be updated in case the user was already authenticated.

15 years ago * src/login.c: fflg is already restricted to root. Move
nekral-guest [Sun, 19 Apr 2009 16:09:00 +0000 (16:09 +0000)]
* src/login.c: fflg is already restricted to root. Move
pam_acct_mgmt(), in case of fflg, earlier. This is equivalent and
simplifies the code.

15 years ago * libmisc/utmp.c: Always call endutent or endutxent when setutent
nekral-guest [Sun, 19 Apr 2009 15:28:38 +0000 (15:28 +0000)]
* libmisc/utmp.c: Always call endutent or endutxent when setutent
or setutxent were used.

15 years ago * src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
nekral-guest [Sun, 19 Apr 2009 13:33:24 +0000 (13:33 +0000)]
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
not get set to unsanitized values.

15 years ago * libmisc/utmp.c: Do not trust the current utmp entry's ut_line.
nekral-guest [Fri, 17 Apr 2009 21:25:30 +0000 (21:25 +0000)]
* libmisc/utmp.c: Do not trust the current utmp entry's ut_line.
Always set ut_line based on ttyname(0).

15 years ago * NEWS, src/login.c: Do not trust the current utmp entry's ut_line
nekral-guest [Fri, 17 Apr 2009 20:40:26 +0000 (20:40 +0000)]
* NEWS, src/login.c: Do not trust the current utmp entry's ut_line
to set PAM_TTY.

15 years ago * configure.in: Updated version number.
nekral-guest [Wed, 15 Apr 2009 21:46:42 +0000 (21:46 +0000)]
* configure.in: Updated version number.

15 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Wed, 15 Apr 2009 21:46:06 +0000 (21:46 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

15 years agoFix NEWS entry.
nekral-guest [Wed, 15 Apr 2009 21:31:09 +0000 (21:31 +0000)]
Fix NEWS entry.

15 years agoFixed nb.po format and added info about the update.
nekral-guest [Wed, 15 Apr 2009 21:29:00 +0000 (21:29 +0000)]
Fixed nb.po format and added info about the update.

15 years ago * NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
nekral-guest [Wed, 15 Apr 2009 21:14:08 +0000 (21:14 +0000)]
* NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
called at the end.
* src/useradd.c: Always call selinux_update_mapping() (i.e.
semanage), not only when -Z is used.

15 years ago * NEWS, srclib/getlong.c: Fix parsing of octal numbers.
nekral-guest [Wed, 15 Apr 2009 17:50:17 +0000 (17:50 +0000)]
* NEWS, srclib/getlong.c: Fix parsing of octal numbers.

* NEWS, src/login.c: Fix segfault when no user is provided on the
command line.

15 years agolibmisc/system.c was contributed by Dan Walsh.
nekral-guest [Wed, 15 Apr 2009 17:42:34 +0000 (17:42 +0000)]
libmisc/system.c was contributed by Dan Walsh.

15 years ago * NEW, src/vipw.c: SE Linux: Set the default context to the
nekral-guest [Wed, 15 Apr 2009 17:42:27 +0000 (17:42 +0000)]
* NEW, src/vipw.c: SE Linux: Set the default context to the
context of the file being edited. This ensures that the backup
file inherit from the file's context.

15 years agoAdded one TODO item for usermod.
nekral-guest [Tue, 14 Apr 2009 22:19:17 +0000 (22:19 +0000)]
Added one TODO item for usermod.

15 years ago * man/usermod.8.xml: There are no default values for --inactive
nekral-guest [Tue, 14 Apr 2009 22:19:11 +0000 (22:19 +0000)]
* man/usermod.8.xml: There are no default values for --inactive
and --gid. If the options are no provided, the original values are
not changed.

15 years agoRemoved TODO entries
nekral-guest [Tue, 14 Apr 2009 22:19:05 +0000 (22:19 +0000)]
Removed TODO entries
 * groupmems has a testsuite now
 * long user names are tested for gpasswd
 * groups and id arenot receiving updates
 * tests with UID/GID sets to (*id_t)-1 already exist.

15 years agoNorwegian Bokmål translation update
bubulle [Sun, 12 Apr 2009 17:43:31 +0000 (17:43 +0000)]
Norwegian Bokmål translation update

15 years agoAdded release date.
nekral-guest [Sun, 12 Apr 2009 02:45:11 +0000 (02:45 +0000)]
Added release date.

15 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Sun, 12 Apr 2009 01:24:45 +0000 (01:24 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

15 years agoAdded TODO entry.
nekral-guest [Sun, 12 Apr 2009 00:38:41 +0000 (00:38 +0000)]
Added TODO entry.

15 years ago * src/su.c: If there are no root account, or if the root account
nekral-guest [Sun, 12 Apr 2009 00:28:32 +0000 (00:28 +0000)]
* src/su.c: If there are no root account, or if the root account
has an UID != 0, default to the first UID 0 account.

15 years ago * src/login.c: Restore the echoctl, echoke, onclr flags to the
nekral-guest [Sun, 12 Apr 2009 00:17:36 +0000 (00:17 +0000)]
* src/login.c: Restore the echoctl, echoke, onclr flags to the
terminal termio flags. Reset echoprt, noflsh, tostop. This
behavior seems to have change by mistake in earlier releases
(4.0.8, for no obvious reason).

15 years ago * src/login.c: Fix the count of failures before login exits in
nekral-guest [Sun, 12 Apr 2009 00:08:26 +0000 (00:08 +0000)]
* src/login.c: Fix the count of failures before login exits in
case of PAM enabled configurations.

15 years ago * man/passwd.1.xml: Document that passwd uses PAM to authenticate
nekral-guest [Sat, 11 Apr 2009 23:32:00 +0000 (23:32 +0000)]
* man/passwd.1.xml: Document that passwd uses PAM to authenticate
and change passwords on PAM-enabled builds.

15 years ago * src/newusers.c: Add more information to the mkdir and chown
nekral-guest [Sat, 11 Apr 2009 23:30:44 +0000 (23:30 +0000)]
* src/newusers.c: Add more information to the mkdir and chown
failure messages.

15 years ago * man/po/fr.po: Updated some login.defs entries. Thanks to
nekral-guest [Sat, 11 Apr 2009 22:41:00 +0000 (22:41 +0000)]
* man/po/fr.po: Updated some login.defs entries. Thanks to
Belkacem Abbas.

15 years ago * man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
nekral-guest [Sat, 11 Apr 2009 22:36:11 +0000 (22:36 +0000)]
* man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
man/login.defs.d/CONSOLE_GROUPS.xml: Fix typos.

15 years agoAdd the POT files to the repository.
nekral-guest [Sat, 11 Apr 2009 19:19:21 +0000 (19:19 +0000)]
Add the POT files to the repository.

15 years agoFix typo.
nekral-guest [Sat, 11 Apr 2009 19:18:38 +0000 (19:18 +0000)]
Fix typo.

15 years ago * man/es/Makefile.am: Disable the distribution of Spanish
nekral-guest [Sat, 11 Apr 2009 18:57:14 +0000 (18:57 +0000)]
* man/es/Makefile.am: Disable the distribution of Spanish
manpages. They are outdated. Please contact
pkg-shadow-devel@lists.alioth.debian.org if you wish to provide
updates.

15 years agoFix typo.
nekral-guest [Sat, 11 Apr 2009 18:44:15 +0000 (18:44 +0000)]
Fix typo.

15 years ago * src/usermod.c, src/useraddd.c: Fix the usage string so that it
nekral-guest [Sat, 11 Apr 2009 18:39:56 +0000 (18:39 +0000)]
* src/usermod.c, src/useraddd.c: Fix the usage string so that it
does not change depending on the configure option. Use a format.

15 years ago * src/gpasswd.c: Fix the usage of the unused macro.
nekral-guest [Sat, 11 Apr 2009 18:37:59 +0000 (18:37 +0000)]
* src/gpasswd.c: Fix the usage of the unused macro.

15 years ago * lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
nekral-guest [Sat, 11 Apr 2009 18:37:08 +0000 (18:37 +0000)]
* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
shadow entry is now sufficient for agecheck. Remove the first
passwd entry parameter.

15 years ago * src/userdel.c: Rename argv to args to avoid nameclash with the
nekral-guest [Sat, 11 Apr 2009 16:52:45 +0000 (16:52 +0000)]
* src/userdel.c: Rename argv to args to avoid nameclash with the
main() parameters.

15 years ago * src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
nekral-guest [Sat, 11 Apr 2009 16:47:32 +0000 (16:47 +0000)]
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
if Zflg is set.

15 years agoAdded TODO item.
nekral-guest [Sat, 11 Apr 2009 16:24:06 +0000 (16:24 +0000)]
Added TODO item.

15 years ago * libmisc/getgr_nam_gid.c: Added support for NULL argument.
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().

15 years agoTag one of the remaining strtol.
nekral-guest [Sat, 11 Apr 2009 16:08:00 +0000 (16:08 +0000)]
Tag one of the remaining strtol.

15 years ago * libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
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.

15 years ago * NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
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.

15 years ago * src/useradd.c (get_defaults): Close the default file after the
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.

15 years agoSlovak translation updated
bubulle [Sat, 11 Apr 2009 13:53:41 +0000 (13:53 +0000)]
Slovak translation updated

15 years agoRe-indent.
nekral-guest [Sat, 11 Apr 2009 13:00:32 +0000 (13:00 +0000)]
Re-indent.

15 years ago * lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.
nekral-guest [Fri, 10 Apr 2009 22:35:43 +0000 (22:35 +0000)]
* lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.

15 years ago * po/POTFILES.in: Added missing files. Sorted.
nekral-guest [Fri, 10 Apr 2009 22:35:37 +0000 (22:35 +0000)]
* po/POTFILES.in: Added missing files. Sorted.

15 years agoRemoved declaration of ep. No more used.
nekral-guest [Fri, 10 Apr 2009 22:35:32 +0000 (22:35 +0000)]
Removed declaration of ep. No more used.
Re-indent.

15 years ago * lib/getdef.c: Use getlong instead of strtol/strtoul.
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/.

15 years agoRemoved DONE entry.
nekral-guest [Fri, 10 Apr 2009 22:35:19 +0000 (22:35 +0000)]
Removed DONE entry.

15 years ago * lib/shadow.c: Replace strtol() by getlong(). Also detect more
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.

15 years ago * lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
nekral-guest [Fri, 10 Apr 2009 22:35:07 +0000 (22:35 +0000)]
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT

15 years agoRevert " * lib/sgetspent.c: Removed (is not used / compiled) anymore."
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.

15 years ago * lib/sgetspent.c: Removed (is not used / compiled) anymore.
nekral-guest [Fri, 10 Apr 2009 22:34:55 +0000 (22:34 +0000)]
* lib/sgetspent.c: Removed (is not used / compiled) anymore.

15 years ago * lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
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.

15 years ago * src/chage.c: expdays renamed to expdate. It is a date, even if
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.

15 years ago * src/chage.c: More strtol() replaced by getlong().
nekral-guest [Fri, 10 Apr 2009 22:34:36 +0000 (22:34 +0000)]
* src/chage.c: More strtol() replaced by getlong().

15 years ago * lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is
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.

15 years ago * src/passwd.c: Replace getnumber() by getlong(). This permits to
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().

15 years ago * libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
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).

15 years ago * src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c,
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.

15 years ago * src/useradd.c: Get rid of strtol.
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.

15 years ago * src/useradd.c: Re-indent.
nekral-guest [Fri, 10 Apr 2009 22:33:57 +0000 (22:33 +0000)]
* src/useradd.c: Re-indent.

15 years ago * src/useradd.c: Use getlong instead of get_number.
nekral-guest [Fri, 10 Apr 2009 22:33:50 +0000 (22:33 +0000)]
* src/useradd.c: Use getlong instead of get_number.

15 years ago * src/usermod.c: Re-indent.
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.

15 years ago * po/*.po, man/po/*.po: Updated PO files.
nekral-guest [Sun, 5 Apr 2009 23:52:46 +0000 (23:52 +0000)]
* po/*.po, man/po/*.po: Updated PO files.

15 years agoAdded todo items.
nekral-guest [Sun, 5 Apr 2009 23:50:58 +0000 (23:50 +0000)]
Added todo items.

15 years ago * configure.in: Prepare the next 4.1.3 release.
nekral-guest [Sun, 5 Apr 2009 22:35:12 +0000 (22:35 +0000)]
* configure.in: Prepare the next 4.1.3 release.

15 years ago * libmisc/setugid.c libmisc/age.c (setup_uid_gid): is_console is
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.

15 years ago * lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to
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.

15 years ago * src/passwd.c: do_update_age is only used ifndef USE_PAM. Make it
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.

15 years ago * src/useradd.c: Set errno to 0 before calling strtol.
nekral-guest [Sun, 5 Apr 2009 22:02:50 +0000 (22:02 +0000)]
* src/useradd.c: Set errno to 0 before calling strtol.

15 years ago * libmisc/isexpired.c: If there are no shadow entry, there is no
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.

15 years agoFix typo.
nekral-guest [Sun, 5 Apr 2009 21:56:37 +0000 (21:56 +0000)]
Fix typo.

15 years ago * man/usermod.8.xml: Split some paragraphs into smaller units.
nekral-guest [Sun, 5 Apr 2009 21:23:55 +0000 (21:23 +0000)]
* man/usermod.8.xml: Split some paragraphs into smaller units.

15 years agoUpdated copyright dates.
nekral-guest [Sun, 5 Apr 2009 21:23:42 +0000 (21:23 +0000)]
Updated copyright dates.

15 years ago * man/shadow.5.xml: Rewrote to mention the meaning of special
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.

15 years ago * libmisc/pwd2spwd.c, src/chpasswd.c, src/newusers.c,
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.

15 years ago * src/chage.c: When no shadow entry exist, thedefault sp_lstchg
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.

15 years ago * libmisc/isexpired.c: Document the isexpired return value.
nekral-guest [Sun, 5 Apr 2009 21:23:06 +0000 (21:23 +0000)]
* libmisc/isexpired.c: Document the isexpired return value.