]> granicus.if.org Git - shadow/log
shadow
15 years agoTag release 4.1.4 4.1.4
nekral-guest [Mon, 11 May 2009 13:50:06 +0000 (13:50 +0000)]
Tag release 4.1.4

15 years ago * NEWS, configure.in: New release will be 4.1.4.
nekral-guest [Sun, 10 May 2009 20:02:21 +0000 (20:02 +0000)]
* NEWS, configure.in: New release will be 4.1.4.
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

15 years agoFix compilation warnings.
nekral-guest [Sun, 10 May 2009 18:26:33 +0000 (18:26 +0000)]
Fix compilation warnings.

15 years ago * libmisc/copydir.c: Added prototype of readlink_malloc(), and
nekral-guest [Sun, 10 May 2009 18:21:58 +0000 (18:21 +0000)]
* libmisc/copydir.c: Added prototype of readlink_malloc(), and
readlink_malloc() changed to static.

15 years ago * src/su.c: Avoid redeclaration of root_pw.
nekral-guest [Sun, 10 May 2009 18:20:41 +0000 (18:20 +0000)]
* src/su.c: Avoid redeclaration of root_pw.

15 years agoAdded Changelog and NEWS entry for the French and Japanese translations.
nekral-guest [Sun, 10 May 2009 17:10:44 +0000 (17:10 +0000)]
Added Changelog and NEWS entry for the French and Japanese translations.

15 years agoFrench translation update
bubulle [Sun, 10 May 2009 16:42:43 +0000 (16:42 +0000)]
French translation update

15 years agoJapanese translation received directly from NAKANO Takeo
bubulle [Sun, 10 May 2009 16:42:17 +0000 (16:42 +0000)]
Japanese translation received directly from NAKANO Takeo

15 years ago * lib/commonio.c: Avoid PATH_MAX. On glibc, we can use realpath
nekral-guest [Sun, 10 May 2009 13:49:03 +0000 (13:49 +0000)]
* lib/commonio.c: Avoid PATH_MAX. On glibc, we can use realpath
with a NULL argument.
* src/useradd.c: Replace PATH_MAX by a fixed constant. The buffer
was not meant as a storage for a path.
* src/useradd.c, src/newusers.c, src/chpasswd.c: Better detection
of fgets errors. Lines shall end with a \n, unless we reached the
end of file.
* libmisc/copydir.c: Avoid PATH_MAX. Support file paths with any
length. Added readlink_malloc().

15 years ago * src/pwck.c: Warn if an user has an entry in passwd and shadow,
nekral-guest [Sat, 9 May 2009 21:20:54 +0000 (21:20 +0000)]
* src/pwck.c: Warn if an user has an entry in passwd and shadow,
and the password field in passwd is not 'x'.
* src/grpck.c: Warn if a group has an entry in group and gshadow,
and the password field in group is not 'x'.

15 years agoFix typo.
nekral-guest [Sat, 9 May 2009 13:38:51 +0000 (13:38 +0000)]
Fix typo.

15 years agoAdded notes about updated translations.
nekral-guest [Sat, 9 May 2009 13:16:17 +0000 (13:16 +0000)]
Added notes about updated translations.

15 years ago * man/login.defs.d/ENCRYPT_METHOD.xml,
nekral-guest [Sat, 9 May 2009 13:16:10 +0000 (13:16 +0000)]
* man/login.defs.d/ENCRYPT_METHOD.xml,
man/login.defs.d/MD5_CRYPT_ENAB.xml,
man/login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml: Updated note for PAM
enabled versions. These variables are only used for group
passwords in this case.

15 years ago * man/chpasswd.8.xml: Sorted options alphabetically.
nekral-guest [Sat, 9 May 2009 13:16:03 +0000 (13:16 +0000)]
* man/chpasswd.8.xml: Sorted options alphabetically.

15 years ago * NEWS, src/newusers.c, src/Makefile.am: Added support for
nekral-guest [Sat, 9 May 2009 13:15:57 +0000 (13:15 +0000)]
* NEWS, src/newusers.c, src/Makefile.am: Added support for
changing the passwords with PAM.
* src/newusers.c: Split the usage string in smaller parts to
allow enabling single parts.
* man/newusers.8.xml: Indicate the options and configuration
variables valid for PAM and non-PAM versions.
* man/newusers.8.xml: Added pointer to /etc/pam.d/chpasswd.

15 years agoSort entries alphabetically.
nekral-guest [Sat, 9 May 2009 13:15:51 +0000 (13:15 +0000)]
Sort entries alphabetically.

15 years ago * src/userdel.c: Remove duplicate definitions of exit codes.
nekral-guest [Sat, 9 May 2009 13:15:44 +0000 (13:15 +0000)]
* src/userdel.c: Remove duplicate definitions of exit codes.

15 years agoFix typos.
nekral-guest [Sat, 9 May 2009 13:15:38 +0000 (13:15 +0000)]
Fix typos.

15 years agoFix typo.
nekral-guest [Sat, 9 May 2009 13:15:32 +0000 (13:15 +0000)]
Fix typo.

15 years ago * libmisc/non_interactive_pam_conv.c,
nekral-guest [Sat, 9 May 2009 13:15:25 +0000 (13:15 +0000)]
* libmisc/non_interactive_pam_conv.c,
libmisc/pam_pass_non_interractive.c, libmisc/Makefile.am: Renamed.
* libmisc/pam_pass_non_interractive.c, lib/prototypes.h:
non_interactive_password and non_interactive_pam_conv do not need
to be externally visible.
* libmisc/pam_pass_non_interractive.c: Added declaration of
ni_conv.
* libmisc/pam_pass_non_interractive.c: Only compile ifdef USE_PAM.
* libmisc/pam_pass_non_interractive.c, lib/prototypes.h:
Added do_pam_passwd_non_interractive().
* src/chpasswd.c: Use do_pam_passwd_non_interractive().

15 years ago * libmisc/pam_pass.c: Removed comment regarding pam_misc. This is
nekral-guest [Sat, 9 May 2009 13:15:17 +0000 (13:15 +0000)]
* libmisc/pam_pass.c: Removed comment regarding pam_misc. This is
checked by configure.in.

15 years ago * man/login.defs.5.xml: PAM enabled chpasswd do not use any
nekral-guest [Sat, 9 May 2009 13:15:10 +0000 (13:15 +0000)]
* man/login.defs.5.xml: PAM enabled chpasswd do not use any
configuration variable from login.defs.

15 years ago * man/passwd.1.xml: Differentiate the files used for PAM and
nekral-guest [Sat, 9 May 2009 13:15:03 +0000 (13:15 +0000)]
* man/passwd.1.xml: Differentiate the files used for PAM and
non-PAM versions.

15 years ago * man/chpasswd.8.xml: Describe how chpasswd in case of error.
nekral-guest [Sat, 9 May 2009 13:14:56 +0000 (13:14 +0000)]
* man/chpasswd.8.xml: Describe how chpasswd in case of error.
* man/chpasswd.8.xml: Describe the PAM enabled chpasswd behavior.
* man/chpasswd.8.xml: Differentiate the files and configurations
needed for PAM and non PAM versions.

15 years ago * src/login.c: failcount does not need to be signed.
nekral-guest [Sat, 9 May 2009 13:14:50 +0000 (13:14 +0000)]
* src/login.c: failcount does not need to be signed.

15 years ago * src/Makefile.am: PAM enabled chpasswd now needs to be linked to
nekral-guest [Sat, 9 May 2009 13:14:44 +0000 (13:14 +0000)]
* src/Makefile.am: PAM enabled chpasswd now needs to be linked to
the PAM library, even if --enable-account-tools-setuid is not
used.

15 years ago * src/chpasswd.c: Added the line number when an error is reported
nekral-guest [Sat, 9 May 2009 13:14:37 +0000 (13:14 +0000)]
* src/chpasswd.c: Added the line number when an error is reported
instead of only the username.
* src/chpasswd.c: PAM enabled chpasswd do may change the password
database (for the user where the password update succeeded) even
if there were a failure for one user. Do not indicate that changes
were ignored.

15 years ago * src/passwd.c: Exit immediately when unlocking a password would
nekral-guest [Sat, 9 May 2009 13:14:31 +0000 (13:14 +0000)]
* src/passwd.c: Exit immediately when unlocking a password would
result in a passwordless account. This avoid printing a success
message after the warning.

15 years ago * src/nologin.c: Include <stdlib.h> to get EXIT_FAILURE.
nekral-guest [Sat, 9 May 2009 13:14:23 +0000 (13:14 +0000)]
* src/nologin.c: Include <stdlib.h> to get EXIT_FAILURE.

15 years agoRussian completed
bubulle [Sat, 9 May 2009 05:57:18 +0000 (05:57 +0000)]
Russian completed

15 years agoRussian translation update
bubulle [Fri, 8 May 2009 17:22:15 +0000 (17:22 +0000)]
Russian translation update

15 years agoCompleted German translation
bubulle [Fri, 8 May 2009 17:19:15 +0000 (17:19 +0000)]
Completed German translation

15 years agoGerman translation update
bubulle [Thu, 7 May 2009 17:48:51 +0000 (17:48 +0000)]
German translation update

15 years ago * NEWS, configure.in: Fix build failure on non-PAM enabled system
nekral-guest [Sun, 3 May 2009 22:46:26 +0000 (22:46 +0000)]
* NEWS, configure.in: Fix build failure on non-PAM enabled system
when --without-pam is not specified.

15 years ago * lib/commonio.c: Ignore teh return values of fclose() and
nekral-guest [Thu, 30 Apr 2009 21:53:54 +0000 (21:53 +0000)]
* lib/commonio.c: Ignore teh return values of fclose() and
unlink() in case of failure of fopen_set_perms() or
create_backup().
* lib/commonio.c: Should the backup file be unlink'ed in case of
failure of create_backup()?

15 years ago * lib/getulong.c: Added splint annotations.
nekral-guest [Thu, 30 Apr 2009 21:44:35 +0000 (21:44 +0000)]
* lib/getulong.c: Added splint annotations.

15 years ago * src/newgrp.c, src/chfn.c, src/groupmems.c, src/usermod.c,
nekral-guest [Thu, 30 Apr 2009 21:39:38 +0000 (21:39 +0000)]
* src/newgrp.c, src/chfn.c, src/groupmems.c, src/usermod.c,
src/userdel.c, src/chpasswd.c, src/grpck.c, src/gpasswd.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/chage.c, src/login.c, src/faillog.c,
src/sulogin.c, src/chsh.c, src/pwconv.c: Added splint annotations.
* src/userdel.c, src/pwconv.c, src/lastlog.c, src/grpck.c,
src/vipw.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/login.c,
src/sulogin.c, src/usermod.c: Use return instead of exit at the
end of main().
* src/gpasswd.c, src/passwd.c, src/faillog.c: Use the exitcodes.h
exit codes.
* src/chpasswd.c: Added missing ||.
* src/nologin.c: Do not include exitcodes.h.
* src/nologin.c: Added brackets.
* src/nologin.c: Avoid assignments in comparisons.

15 years ago * libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c,
nekral-guest [Thu, 30 Apr 2009 21:12:33 +0000 (21:12 +0000)]
* libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c,
lib/get_uid.c: Added splint annotations.

15 years ago * lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs.
nekral-guest [Thu, 30 Apr 2009 21:08:49 +0000 (21:08 +0000)]
* lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs.
* libmisc/chowntty.c, libmisc/rlogin.c, libmisc/sub.c,
src/newusers.c, libmisc/sulog.c, libmisc/system.c, src/logoutd.c,
src/groups.c, src/id.c, lib/encrypt.c, libmisc/audit_help.c,
libmisc/limits.c: Return EXIT_FAILURE instead of 1, and
EXIT_SUCCESS instead of 0.
* libmisc/audit_help.c: Replace an fprintf() by fputs().
* libmisc/audit_help.c: Remove documentation of the audit_logger
returned values. The function returns void.
* libmisc/system.c: Only return status if waitpid succeeded.
Return -1 otherwise.

15 years agoFix some splint warnings.
nekral-guest [Tue, 28 Apr 2009 22:01:20 +0000 (22:01 +0000)]
Fix some splint warnings.
Rmove debug code.

15 years agoRestore string.
nekral-guest [Tue, 28 Apr 2009 21:46:06 +0000 (21:46 +0000)]
Restore string.

15 years ago * NEWS, src/chpasswd.c: Added support for changing the passwords
nekral-guest [Tue, 28 Apr 2009 21:45:38 +0000 (21:45 +0000)]
* NEWS, src/chpasswd.c: Added support for changing the passwords
with PAM.
* src/chpasswd.c: Split the usage string in smaller parts to
allows enabling single parts.
* src/chpasswd.c: Do not set a global lock on the password files.
This is done by PAM each time a password is updated.

15 years ago * lib/defines.h: Include <utmpx.h> and <utmp.h> to define
nekral-guest [Tue, 28 Apr 2009 21:01:20 +0000 (21:01 +0000)]
* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
USER_NAME_MAX_LENGTH.

15 years ago * src/login.c: Change a snprintf() to strncpy(). There are no
nekral-guest [Tue, 28 Apr 2009 20:59:31 +0000 (20:59 +0000)]
* src/login.c: Change a snprintf() to strncpy(). There are no
format.

15 years agoRe-indent, reformat #ifndef blocks.
nekral-guest [Tue, 28 Apr 2009 20:55:10 +0000 (20:55 +0000)]
Re-indent, reformat #ifndef blocks.

15 years ago * src/passwd.c: Harmonize status report at the end of passwd.
nekral-guest [Tue, 28 Apr 2009 20:46:35 +0000 (20:46 +0000)]
* src/passwd.c: Harmonize status report at the end of passwd.
Prefix the messages with "passwd: ", only indicate a password
change if the password was actually changed, and password
properties changed otherwise.

15 years ago * src/chgpasswd.c, src/newusers.c: There is no need to test for 0
nekral-guest [Tue, 28 Apr 2009 20:10:18 +0000 (20:10 +0000)]
* src/chgpasswd.c, src/newusers.c: There is no need to test for 0
after getopt_long. No options have flag != NULL.

15 years ago * src/newusers.c: There is no need to test for 0 after
nekral-guest [Tue, 28 Apr 2009 20:08:30 +0000 (20:08 +0000)]
* src/newusers.c: There is no need to test for 0 after
getopt_long. No options have flag != NULL.

15 years ago * libmisc/Makefile.am, lib/prototypes.h,
nekral-guest [Tue, 28 Apr 2009 20:07:24 +0000 (20:07 +0000)]
* libmisc/Makefile.am, lib/prototypes.h,
libmisc/non_interactive_pam_conv.c: Added
non_interactive_pam_conv() and non_interactive_password.

15 years ago * lib/prototypes.h: Replace #if by #ifdef
nekral-guest [Tue, 28 Apr 2009 20:06:46 +0000 (20:06 +0000)]
* lib/prototypes.h: Replace #if by #ifdef
* lib/prototypes.h, libmisc/non_interactive_pam_conv.c: Added
non_interactive_pam_conv() and non_interactive_password.

15 years ago * libmisc/utmp.c, src/userdel.c, src/logoutd.c: Replace #if by #ifdef
nekral-guest [Tue, 28 Apr 2009 20:03:23 +0000 (20:03 +0000)]
* libmisc/utmp.c, src/userdel.c, src/logoutd.c: Replace #if by #ifdef

15 years ago * src/vipw.c: Harmonize messages.
nekral-guest [Tue, 28 Apr 2009 19:26:27 +0000 (19:26 +0000)]
* src/vipw.c: Harmonize messages.

15 years ago * src/lastlog.c: Replace atoi() by getulong().
nekral-guest [Tue, 28 Apr 2009 19:25:15 +0000 (19:25 +0000)]
* src/lastlog.c: Replace atoi() by getulong().

15 years ago * libmisc/failure.h: Replace HAVE_UTMPX_H by USE_UTMPX.
nekral-guest [Tue, 28 Apr 2009 19:19:33 +0000 (19:19 +0000)]
* libmisc/failure.h: Replace HAVE_UTMPX_H by USE_UTMPX.

15 years ago * libmisc/rlogin.c: Replace atoi() by getulong().
nekral-guest [Tue, 28 Apr 2009 19:17:21 +0000 (19:17 +0000)]
* libmisc/rlogin.c: Replace atoi() by getulong().

15 years ago * libmisc/failure.c: Replace HAVE_UTMPX_H by USE_UTMPX.
nekral-guest [Tue, 28 Apr 2009 19:14:50 +0000 (19:14 +0000)]
* libmisc/failure.c: Replace HAVE_UTMPX_H by USE_UTMPX.

15 years ago * libmisc/chkname.c: Do not include <utmp.h> and <utmpx.h>. There
nekral-guest [Tue, 28 Apr 2009 19:14:05 +0000 (19:14 +0000)]
* libmisc/chkname.c: Do not include <utmp.h> and <utmpx.h>. There
are no more needed.

15 years ago * libmisc/limits.c: Replace strtol() by getlong().
nekral-guest [Tue, 28 Apr 2009 19:12:48 +0000 (19:12 +0000)]
* libmisc/limits.c: Replace strtol() by getlong().
* libmisc/limits.c: Replace HAVE_UTMPX_H by USE_UTMPX.

15 years ago * man/groupmod.8.xml, man/usermod.8.xml, man/groupadd.8.xml,
nekral-guest [Mon, 27 Apr 2009 20:29:43 +0000 (20:29 +0000)]
* man/groupmod.8.xml, man/usermod.8.xml, man/groupadd.8.xml,
man/useradd.8.xml: Added note to warn about insecurity in using
--password.
* man/groupmod.8.xml: Removed not regarding default if --password
is not used. This was a cut&paste from groupadd.8.xml.
* man/passwd.1.xml: Split some paragraphs.
* man/passwd.1.xml: Recommend other encryption methods than DES.

15 years ago * src/login.c: Move update_utmp() after the PID or session ID
nekral-guest [Mon, 27 Apr 2009 20:25:23 +0000 (20:25 +0000)]
* src/login.c: Move update_utmp() after the PID or session ID
changed in order to get more accurate data in UTMP. This also
fixes "exec login" when login in installed setuid.

15 years ago * src/login.c: Reuse a string and avoid an untranslated message
nekral-guest [Mon, 27 Apr 2009 20:21:48 +0000 (20:21 +0000)]
* src/login.c: Reuse a string and avoid an untranslated message
"Login incorrect".

15 years ago * src/login.c: Replace HAVE_UTMPX_H by USE_UTMPX.
nekral-guest [Mon, 27 Apr 2009 20:20:37 +0000 (20:20 +0000)]
* src/login.c: Replace HAVE_UTMPX_H by USE_UTMPX.
* src/login.c: Avoid name clash between global variables and the
update_utmp() arguments.

15 years ago * src/groupadd.c, lib/commonio.c, lib/groupio.c: Added missing
nekral-guest [Mon, 27 Apr 2009 20:18:00 +0000 (20:18 +0000)]
* src/groupadd.c, lib/commonio.c, lib/groupio.c: Added missing
include of <assert.h>

15 years ago * src/groupadd.c: Added missing include of <assert.h>
nekral-guest [Mon, 27 Apr 2009 20:16:04 +0000 (20:16 +0000)]
* src/groupadd.c: Added missing include of <assert.h>

15 years ago * lib/prototypes.h: Replace HAVE_UTMPX_H by USE_UTMPX.
nekral-guest [Mon, 27 Apr 2009 20:15:09 +0000 (20:15 +0000)]
* lib/prototypes.h: Replace HAVE_UTMPX_H by USE_UTMPX.
* lib/prototypes.h, libmisc/log.c: Added splint annotations.
* libmisc/log.c: Added SYSLOG warning when lseek fails (should not
happen).

15 years ago * libmisc/mail.c, libmisc/copydir.c: Added missing include of
nekral-guest [Mon, 27 Apr 2009 20:09:18 +0000 (20:09 +0000)]
* libmisc/mail.c, libmisc/copydir.c: Added missing include of
<assert.h>

15 years ago * libmisc/env.c: Added assertions on the snprintf results.
nekral-guest [Mon, 27 Apr 2009 20:07:59 +0000 (20:07 +0000)]
* libmisc/env.c: Added assertions on the snprintf results.

15 years ago * libmisc/utmp.c: Replace HAVE_UTMPX_H by USE_UTMPX.
nekral-guest [Mon, 27 Apr 2009 20:06:25 +0000 (20:06 +0000)]
* libmisc/utmp.c: Replace HAVE_UTMPX_H by USE_UTMPX.
* libmisc/utmp.c: Removed old comment on HAVE_STRUCT_UTMP_UT_ID
and UTMPX support.

15 years ago * NEWS, configure.in: Added configure option --enable-utmpx,
nekral-guest [Mon, 27 Apr 2009 20:03:48 +0000 (20:03 +0000)]
* NEWS, configure.in: Added configure option --enable-utmpx,
disabled by default. This defines USE_UTMPX, which should be used
instead of HAVE_UTMPX_H.

15 years ago * man/po/fr.po: Fix typo.
nekral-guest [Mon, 27 Apr 2009 19:56:34 +0000 (19:56 +0000)]
* man/po/fr.po: Fix typo.

15 years ago * src/newgrp.c: Close the databases before changing the UDI and
nekral-guest [Sun, 26 Apr 2009 17:11:38 +0000 (17:11 +0000)]
* src/newgrp.c: Close the databases before changing the UDI and
GID.

15 years ago * libmisc/myname.c: Updated splint annotations.
nekral-guest [Sun, 26 Apr 2009 17:10:49 +0000 (17:10 +0000)]
* libmisc/myname.c: Updated splint annotations.

15 years ago * lib/commonio.c: Added splint annotations.
nekral-guest [Sun, 26 Apr 2009 16:48:51 +0000 (16:48 +0000)]
* lib/commonio.c: Added splint annotations.
* lib/commonio.c: old_context should be local to commonio_close(),
not global.

15 years ago * src/passwd.c: Do not freecon strings duplicated with strdup.
nekral-guest [Sun, 26 Apr 2009 16:44:54 +0000 (16:44 +0000)]
* src/passwd.c: Do not freecon strings duplicated with strdup.
Also avoid allocation of memory.
* src/passwd.c: Use SYSLOG instead of syslog.

15 years agoUpdated Czech translation
bubulle [Sun, 26 Apr 2009 12:26:10 +0000 (12:26 +0000)]
Updated Czech translation

15 years agoUpdated splint annotations.
nekral-guest [Sat, 25 Apr 2009 15:18:49 +0000 (15:18 +0000)]
Updated splint annotations.

15 years agoUpdated splint annotations.
nekral-guest [Sat, 25 Apr 2009 14:16:22 +0000 (14:16 +0000)]
Updated splint annotations.

15 years ago * lib/commonio.c: Do not assumes eptr is always notnull.
nekral-guest [Sat, 25 Apr 2009 13:41:52 +0000 (13:41 +0000)]
* lib/commonio.c: Do not assumes eptr is always notnull.
Updated splint annotations.

15 years agoUpdated splint annotations.
nekral-guest [Sat, 25 Apr 2009 13:13:50 +0000 (13:13 +0000)]
Updated splint annotations.

15 years ago * lib/commonio.h, lib/commonio.c: Added splint annotations.
nekral-guest [Sat, 25 Apr 2009 12:43:27 +0000 (12:43 +0000)]
* lib/commonio.h, lib/commonio.c: Added splint annotations.

15 years ago * NEWS, po/pt.po: Updated Portuguese translation.
nekral-guest [Sat, 25 Apr 2009 11:06:35 +0000 (11:06 +0000)]
* NEWS, po/pt.po: Updated Portuguese translation.

15 years ago * libmisc/copydir.c: Added splint annotations.
nekral-guest [Fri, 24 Apr 2009 23:41:28 +0000 (23:41 +0000)]
* libmisc/copydir.c: Added splint annotations.
* libmisc/copydir.c: Added assert to help splint.
* libmisc/copydir.c: Free allocated structures in cas of failure.
* libmisc/copydir.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/copydir.c: Use buffers of size PATH_MAX instead of 1024
for filenames.
* libmisc/copydir.c: Use fchmod and fchown to change the mode of
the opened file.
* libmisc/copydir.c: Indicate the mode to open(), even if we chmod
later.

15 years ago * lib/prototypes.h: Added prototypes of getulong() and get_pid().
nekral-guest [Fri, 24 Apr 2009 23:35:57 +0000 (23:35 +0000)]
* lib/prototypes.h: Added prototypes of getulong() and get_pid().
* lib/prototypes.h: Added splint annotations.

15 years ago * lib/commonio.c: Use get_pid() instead of strtol.
nekral-guest [Fri, 24 Apr 2009 23:35:01 +0000 (23:35 +0000)]
* lib/commonio.c: Use get_pid() instead of strtol.
* lib/commonio.c: Replace an int by a size_t.

15 years ago * lib/commonio.h: Added splint annotations.
nekral-guest [Fri, 24 Apr 2009 23:33:47 +0000 (23:33 +0000)]
* lib/commonio.h: Added splint annotations.

15 years ago * lib/sgroupio.c: Free allocated structures on failure.
nekral-guest [Fri, 24 Apr 2009 23:32:52 +0000 (23:32 +0000)]
* lib/sgroupio.c: Free allocated structures on failure.
* lib/sgroupio.c: Added splint annotations.

15 years ago * lib/Makefile.am, lib/get_pid.c, lib/getulong.c: Added get_pid()
nekral-guest [Fri, 24 Apr 2009 23:28:15 +0000 (23:28 +0000)]
* lib/Makefile.am, lib/get_pid.c, lib/getulong.c: Added get_pid()
and getulong().

15 years ago * lib/getlong.c: Do not check for NULL string but empty string.
nekral-guest [Fri, 24 Apr 2009 23:27:12 +0000 (23:27 +0000)]
* lib/getlong.c: Do not check for NULL string but empty string.

15 years ago * lib/groupio.c: Updated splint annotations.
nekral-guest [Fri, 24 Apr 2009 23:26:31 +0000 (23:26 +0000)]
* lib/groupio.c: Updated splint annotations.
* lib/groupio.c: Added assert to help splint.

15 years ago * src/useradd.c: Check assumptions on snprintf().
nekral-guest [Fri, 24 Apr 2009 23:23:51 +0000 (23:23 +0000)]
* src/useradd.c: Check assumptions on snprintf().
* src/useradd.c: Replace peror by an strerror and avoid an
intermediate buffer.
* src/useradd.c: Save errno between the failure and the report by
perror/strerror.
* src/useradd.c: Prefer xmalloc to malloc.

15 years ago * src/lastlog.c: Remove function calls from within assert().
nekral-guest [Fri, 24 Apr 2009 23:05:29 +0000 (23:05 +0000)]
* src/lastlog.c: Remove function calls from within assert().

15 years ago * libmisc/obscure.c: Change some int to size_t.
nekral-guest [Fri, 24 Apr 2009 23:04:27 +0000 (23:04 +0000)]
* libmisc/obscure.c: Change some int to size_t.

15 years ago * libmisc/console.c: Use a less disturbing construct for splint.
nekral-guest [Fri, 24 Apr 2009 23:03:14 +0000 (23:03 +0000)]
* libmisc/console.c: Use a less disturbing construct for splint.

15 years ago * libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
nekral-guest [Fri, 24 Apr 2009 22:56:42 +0000 (22:56 +0000)]
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
limit with getlog() / getulong(). This also means, in case of
non-PAM enabled systems, that the umask specified on the GECOS
fields should start with a 0 if specified in octal. (it used to be
force to octal). Do the appropriate cast and range checking.

15 years ago * libmisc/salt.c: In case gettimeofday() fails, get some entropy
nekral-guest [Fri, 24 Apr 2009 22:49:20 +0000 (22:49 +0000)]
* libmisc/salt.c: In case gettimeofday() fails, get some entropy
from the PID.

15 years ago * libmisc/setupenv.c: Prefer snprintf to sprintf, even if a small
nekral-guest [Fri, 24 Apr 2009 22:46:06 +0000 (22:46 +0000)]
* libmisc/setupenv.c: Prefer snprintf to sprintf, even if a small
context indicates no issues.
* libmisc/setupenv.c: Avoid implicit conversion of pointers to
booleans.

15 years ago * libmisc/loginprompt.c: Prefer snprintf to sprintf, even if a
nekral-guest [Fri, 24 Apr 2009 22:27:58 +0000 (22:27 +0000)]
* libmisc/loginprompt.c: Prefer snprintf to sprintf, even if a
small context indicates no issues.

15 years ago * src/faillog.c: Remove function calls from within assert().
nekral-guest [Fri, 24 Apr 2009 22:27:09 +0000 (22:27 +0000)]
* src/faillog.c: Remove function calls from within assert().

15 years ago * libmisc/mail.c: Ignore the return value of puts().
nekral-guest [Fri, 24 Apr 2009 22:22:57 +0000 (22:22 +0000)]
* libmisc/mail.c: Ignore the return value of puts().
* libmisc/mail.c: Prefer snprintf to sprintf, even if a small
context indicates no issues.

15 years ago * lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h,
nekral-guest [Thu, 23 Apr 2009 21:19:02 +0000 (21:19 +0000)]
* lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h,
lib/pwio.c, lib/pwio.h, lib/shadowio.c, lib/shadowio.h: Added
splint annotations. The *_locate() and *_next() functions
currently return an observer. As the structure are often modified
by the caller, it could maybe be changed to exposed later. (and
non-const).