]> granicus.if.org Git - shadow/log
shadow
13 years ago * src/su.c: Cleanup check_perms_nopam().
nekral-guest [Mon, 13 Jun 2011 18:27:06 +0000 (18:27 +0000)]
* src/su.c: Cleanup check_perms_nopam().

13 years ago * src/su.c: Split check_perms() in to a PAM (check_perms_pam) and
nekral-guest [Mon, 13 Jun 2011 18:26:58 +0000 (18:26 +0000)]
* src/su.c: Split check_perms() in to a PAM (check_perms_pam) and
a non-PAM (check_perms_nopam) version.

13 years agoCompile fixes & cleanups.
nekral-guest [Mon, 13 Jun 2011 18:26:52 +0000 (18:26 +0000)]
Compile fixes & cleanups.

13 years ago * src/su.c (save_caller_context): Extract from main() the code
nekral-guest [Mon, 13 Jun 2011 18:26:47 +0000 (18:26 +0000)]
* src/su.c (save_caller_context): Extract from main() the code
used to save the caller's context.

13 years ago * src/su.c: Cleanup local variables.
nekral-guest [Mon, 13 Jun 2011 18:26:36 +0000 (18:26 +0000)]
* src/su.c: Cleanup local variables.

13 years agoCleanup comments.
nekral-guest [Mon, 13 Jun 2011 18:26:31 +0000 (18:26 +0000)]
Cleanup comments.

13 years ago * lib/prototypes.h, src/suauth.c, src/su.c (check_su_auth): Do not
nekral-guest [Mon, 13 Jun 2011 18:26:26 +0000 (18:26 +0000)]
* lib/prototypes.h, src/suauth.c, src/su.c (check_su_auth): Do not
use the pwent global variable to communicate between APIs of
different files. Added boolean parameter su_to_root to
check_su_auth().
* src/su.c (check_perms): Return the passwd entry of the finally
authenticated user. Remove usage of the pwent variable.
* src/su.c: The password of the caller is the one from the
spwd structure only if the passwd's password is 'x'.

13 years ago * src/su.c: Extract the authentication from the main function.
nekral-guest [Mon, 13 Jun 2011 18:26:16 +0000 (18:26 +0000)]
* src/su.c: Extract the authentication from the main function.

13 years ago * src/su.c: Define shellstr before the environment so that
nekral-guest [Mon, 13 Jun 2011 18:26:10 +0000 (18:26 +0000)]
* src/su.c: Define shellstr before the environment so that
restricted_shell is called only once. This will allow moving the
environment definition after the switch to the new user.

13 years ago * src/su.c: Move definition of change_environment and shellstr
nekral-guest [Mon, 13 Jun 2011 18:25:57 +0000 (18:25 +0000)]
* src/su.c: Move definition of change_environment and shellstr
after the switch to the final subsystem. The previous architecture
forced to always change the environment (the shell starts with a
'*' and was thus restricted, and change_environment could not be
reset to false).

13 years ago * src/su.c: No need to change the user's shell in case of
nekral-guest [Mon, 13 Jun 2011 18:25:51 +0000 (18:25 +0000)]
* src/su.c: No need to change the user's shell in case of
subsystem root. Update the comments.

13 years ago * src/su.c: Group some of the environment processing blocks. The
nekral-guest [Mon, 13 Jun 2011 18:25:45 +0000 (18:25 +0000)]
* src/su.c: Group some of the environment processing blocks. The
definition of shellstr, PATH and IFS is not influenced (getenv,
getdef, restricted_shell) by and does not influence (addenv does
not change environ) the authentication. And the authentication
does not overwrite those definitions. This will ease an extraction
from the big main() function.

13 years ago * src/su.c: No need to call expire() if there are no shadow entry.
nekral-guest [Mon, 13 Jun 2011 18:25:40 +0000 (18:25 +0000)]
* src/su.c: No need to call expire() if there are no shadow entry.
No need to convert a passwd entry into an spwd entry in that case.

13 years ago * src/su.c: Updating pwent after expire() is not useful. Only the
nekral-guest [Mon, 13 Jun 2011 18:25:34 +0000 (18:25 +0000)]
* src/su.c: Updating pwent after expire() is not useful. Only the
password information may have changed and they are not used
anymore afterwards.

13 years agoFrench manpages translation
bubulle [Sun, 12 Jun 2011 19:55:58 +0000 (19:55 +0000)]
French manpages translation

13 years agoDocument the updated translations.
nekral-guest [Sun, 5 Jun 2011 14:56:11 +0000 (14:56 +0000)]
Document the updated translations.

13 years ago * NEWS, src/su.c: Do not forward the controlling terminal to
nekral-guest [Sun, 5 Jun 2011 14:41:15 +0000 (14:41 +0000)]
* NEWS, src/su.c: Do not forward the controlling terminal to
commands executed with -c. This prevents tty hijacking which could
lead to execution with the caller's privileges. This required to
forward signals from the terminal (SIGINT, SIGQUIT, SIGTSTP) to
the executed command.

13 years ago * NEWS, src/userdel.c: Do not remove a group with the same name as
nekral-guest [Sun, 5 Jun 2011 12:23:59 +0000 (12:23 +0000)]
* NEWS, src/userdel.c: Do not remove a group with the same name as
the user (usergroup) if this group isn't the user's primary group.

13 years ago * NEWS, src/userdel.c: Check the existence of the user's mail
nekral-guest [Sat, 4 Jun 2011 22:38:57 +0000 (22:38 +0000)]
* NEWS, src/userdel.c: Check the existence of the user's mail
spool before trying to remove it. If it does not exist, a warning
is issued, but no failure.

13 years agoHarmonize message.
nekral-guest [Fri, 3 Jun 2011 21:09:27 +0000 (21:09 +0000)]
Harmonize message.

13 years ago * src/sulogin.c: Added Prog, needed because of the last xmalloc()
nekral-guest [Fri, 3 Jun 2011 21:08:56 +0000 (21:08 +0000)]
* src/sulogin.c: Added Prog, needed because of the last xmalloc()
change.

13 years ago * man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN
nekral-guest [Fri, 3 Jun 2011 21:07:58 +0000 (21:07 +0000)]
* man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN
Makefile.
* man/Makefile.am: Build zh_CN pages.
* man/generate_translations.mak: Add config.xml to CLEANFILES.
* man/po/zh_CN.po: limits, groups, faillog, expiry should not be
translated (command name, file name), also this broke the build
system as they are used to derive manpage names.

13 years ago * man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN
nekral-guest [Fri, 3 Jun 2011 21:06:23 +0000 (21:06 +0000)]
* man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN
Makefile.
* man/Makefile.am: Build zh_CN pages.
* man/generate_translations.mak: Add config.xml to CLEANFILES.
* man/po/zh_CN.po: limits, groups, faillog, expiry should not be
translated (command name, file name), also this broke the build
system as they are used to derive manpage names.

13 years ago * src/lastlog.c, src/faillog.c: Fix underflows causing wrong entry
nekral-guest [Thu, 2 Jun 2011 20:26:30 +0000 (20:26 +0000)]
* src/lastlog.c, src/faillog.c: Fix underflows causing wrong entry
to be displayed.

13 years ago * libmisc/xmalloc.c: Harmonize message.
nekral-guest [Thu, 2 Jun 2011 18:41:05 +0000 (18:41 +0000)]
* libmisc/xmalloc.c: Harmonize message.

13 years ago * libmisc/find_new_uid.c, libmisc/find_new_gid.c: Add missing
nekral-guest [Thu, 2 Jun 2011 18:40:06 +0000 (18:40 +0000)]
* libmisc/find_new_uid.c, libmisc/find_new_gid.c: Add missing
memory allocation check.

13 years ago * NEWS, libmisc/addgrps.c: Fix allocator loop. Continue to
nekral-guest [Thu, 2 Jun 2011 15:36:29 +0000 (15:36 +0000)]
* NEWS, libmisc/addgrps.c: Fix allocator loop. Continue to
getgroups() when getgroups fails (-1) with errno==EINVAL.

13 years agoGerman translation of manpages completed
bubulle [Wed, 1 Jun 2011 12:19:25 +0000 (12:19 +0000)]
German translation of manpages completed

13 years agoFix typos in manpages
bubulle [Wed, 1 Jun 2011 11:58:04 +0000 (11:58 +0000)]
Fix typos in manpages
Catalan translation updated

13 years agoFrench and Portuguese translation updates
bubulle [Mon, 25 Apr 2011 10:06:23 +0000 (10:06 +0000)]
French and Portuguese translation updates

13 years agoGerman translation completed
bubulle [Sat, 16 Apr 2011 07:31:49 +0000 (07:31 +0000)]
German translation completed

13 years agoBrazilian Portuguese translation completed
bubulle [Fri, 15 Apr 2011 06:21:10 +0000 (06:21 +0000)]
Brazilian Portuguese translation completed

13 years agoRussian translation completed
bubulle [Sun, 10 Apr 2011 15:50:13 +0000 (15:50 +0000)]
Russian translation completed

13 years agoUpdated Swedish and Danish translations
bubulle [Thu, 7 Apr 2011 17:45:33 +0000 (17:45 +0000)]
Updated Swedish and Danish translations

13 years agoFixed file
bubulle [Wed, 6 Apr 2011 04:14:12 +0000 (04:14 +0000)]
Fixed file

13 years agoKazakh and Japanese translation updates
bubulle [Tue, 5 Apr 2011 18:06:32 +0000 (18:06 +0000)]
Kazakh and Japanese translation updates

13 years agoSimplified Chinese translation completed
bubulle [Wed, 30 Mar 2011 17:51:50 +0000 (17:51 +0000)]
Simplified Chinese translation completed

13 years agoConvert zh_CN translation of manpages to gettext
bubulle [Wed, 30 Mar 2011 17:50:19 +0000 (17:50 +0000)]
Convert zh_CN translation of manpages to gettext

13 years ago * man/ru/Makefile.am: Remove double inclusion of $(man_nopam)
nekral-guest [Sat, 19 Feb 2011 16:17:26 +0000 (16:17 +0000)]
* man/ru/Makefile.am: Remove double inclusion of $(man_nopam)

13 years ago * libmisc/user_busy.c, src/userdel.c, src/usermod.c: Warn in
nekral-guest [Wed, 16 Feb 2011 20:46:27 +0000 (20:46 +0000)]
* libmisc/user_busy.c, src/userdel.c, src/usermod.c: Warn in
user_busy() rather than in src/userdel.c or src/usermod.c to
provide more accurate failure cause (user is logged in or user
still executes processes).

13 years agoAdded missing Changelog entry for lib/fields.c:
nekral-guest [Wed, 16 Feb 2011 20:33:16 +0000 (20:33 +0000)]
Added missing Changelog entry for lib/fields.c:
* lib/fields.c: Fail if input pointer is NULL.

13 years ago * lib/groupio.c, lib/sgroupio.c, lib/shadowio.c, lib/pwio.c: Check
nekral-guest [Wed, 16 Feb 2011 20:32:16 +0000 (20:32 +0000)]
* lib/groupio.c, lib/sgroupio.c, lib/shadowio.c, lib/pwio.c: Check
entry validity before commits to databases.
* libmisc/fields.c, libmisc/Makefile.am, lib/fields.c,
lib/Makefile.am, po/POTFILES.in: fields.c moved from libmisc to
lib.

13 years agoAdapt ignore list to previous commits.
nekral-guest [Wed, 16 Feb 2011 20:27:25 +0000 (20:27 +0000)]
Adapt ignore list to previous commits.

13 years ago * NEWS, src/chfn.c, src/chsh.c: Fix CVE-2011-0721: forbid \n in
nekral-guest [Wed, 16 Feb 2011 00:18:45 +0000 (00:18 +0000)]
* NEWS, src/chfn.c, src/chsh.c: Fix CVE-2011-0721: forbid \n in
gecos or shell.

13 years agoCleanup previous commit.
nekral-guest [Sun, 13 Feb 2011 11:51:39 +0000 (11:51 +0000)]
Cleanup previous commit.

13 years ago * autogen.sh: Restore original autoreconf (see 2010-08-29's change
nekral-guest [Sat, 12 Feb 2011 14:57:37 +0000 (14:57 +0000)]
* autogen.sh: Restore original autoreconf (see 2010-08-29's change
for autogen.sh)
* configure.in, man/po/Makefile.in.in, man/po/Makefile.in:
Makefile.in.in replaced by Makefile.in to avoid config.status
issues when there are multiple po directories.
* man/po/LINGUAS: Adapted to above change.
* man/po/POTFILES.in, man/po/XMLFILES: POTFILES.in replaced by
XMLFILES.
* man/Makefile.am: generate_mans.deps shall be included by make,
not automake.

13 years ago * NEWS, libmisc/console.c: Fix CONSOLE parser. This caused login
nekral-guest [Fri, 19 Nov 2010 21:54:41 +0000 (21:54 +0000)]
* NEWS, libmisc/console.c: Fix CONSOLE parser. This caused login
to hang when CONSOLE was configured with a colon separated list of
TTYs.  See http://bugs.gentoo.org/show_bug.cgi?id=324419

14 years ago Integrate review comments from Julien Cristau
nekral-guest [Sun, 5 Sep 2010 15:34:42 +0000 (15:34 +0000)]
Integrate review comments from Julien Cristau
* libmisc/copydir.c: Missing parenthesis in comment.
* libmisc/chowndir.c: Fixed memory leak on failed realloc().
* libmisc/chowndir.c: Make sure the buffer for the path is large
enough.
* libmisc/remove_tree.c: Remove check for NULL before free().

14 years ago * man/po/fr.po: Fix 2 fuzzy strings.
nekral-guest [Sun, 29 Aug 2010 19:11:40 +0000 (19:11 +0000)]
* man/po/fr.po: Fix 2 fuzzy strings.

14 years ago * NEWS, src/usermod.c: Accept options in any order (username not
nekral-guest [Sun, 29 Aug 2010 19:02:41 +0000 (19:02 +0000)]
* NEWS, src/usermod.c: Accept options in any order (username not
necessarily at the end)

14 years ago * autogen.sh: Expand autoreconf to avoid running autopoint.
nekral-guest [Sun, 29 Aug 2010 16:42:25 +0000 (16:42 +0000)]
* autogen.sh: Expand autoreconf to avoid running autopoint.

14 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Sun, 29 Aug 2010 16:13:47 +0000 (16:13 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

14 years ago * man/chsh.1.xml: Fix comma splice.
nekral-guest [Sat, 28 Aug 2010 20:16:18 +0000 (20:16 +0000)]
* man/chsh.1.xml: Fix comma splice.

14 years ago * NEWS, po/kk.po: Updated Kazakh translation.
nekral-guest [Sat, 28 Aug 2010 20:02:25 +0000 (20:02 +0000)]
* NEWS, po/kk.po: Updated Kazakh translation.

14 years ago * lib/protoypes.h, libmisc/copydir.c, src/useradd.c:
nekral-guest [Sat, 28 Aug 2010 19:58:00 +0000 (19:58 +0000)]
* lib/protoypes.h, libmisc/copydir.c, src/useradd.c:
selinux_file_context renamed set_selinux_file_context.
* lib/protoypes.h, libmisc/copydir.c, src/useradd.c:
Added reset_selinux_file_context.
* src/useradd.c: Check the return value of
set_selinux_file_context and reset_selinux_file_context.
* libmisc/copydir.c: Check the return value of
reset_selinux_file_context.

14 years ago * src/su.c: Fix handling of environment variables when
nekral-guest [Sat, 28 Aug 2010 19:55:31 +0000 (19:55 +0000)]
* src/su.c: Fix handling of environment variables when
the environment is not changed. In particular, this makes su
behave as documented regarding PATH and IFS (i.e. they are reset)
when -p is provided.

14 years ago * man/su.1.xml: Fix typo.
nekral-guest [Sat, 28 Aug 2010 19:48:17 +0000 (19:48 +0000)]
* man/su.1.xml: Fix typo.

14 years ago * src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
nekral-guest [Sun, 22 Aug 2010 19:36:09 +0000 (19:36 +0000)]
* 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/chage.c,
src/groupadd.c, src/login.c, src/grpconv.c, src/groups.c,
src/grpunconv.c, src/chsh.c: Prog changed to a constant string.

14 years ago * libmisc/limits.c: Avoid implicit conversion of integer to
nekral-guest [Sun, 22 Aug 2010 19:13:53 +0000 (19:13 +0000)]
* libmisc/limits.c: Avoid implicit conversion of integer to
boolean.
* libmisc/basename.c: Avoid implicit conversion of pointer to
boolean.
* libmisc/basename.c, lib/prototypes.h (Basename): Return a
constant string.
* libmisc/basename.c, libmisc/obscure.c, lib/prototypes.h,
libmisc/xmalloc.c, libmisc/getdate.h, libmisc/system.c,
libmisc/getgr_nam_gid.c, libmisc/failure.c, libmisc/valid.c: Add
splint annotations.
* libmisc/chowndir.c: Avoid memory leak.
* libmisc/chowndir.c: Do not check *printf/*puts return value.
* libmisc/chowntty.c: Avoid implicit conversion between integer
types.
* libmisc/obscure.c: Return a bool when possible instead of int.
* libmisc/shell.c: Do not check *printf/*puts return value.
* libmisc/shell.c: Do not check execle return value.
* libmisc/setupenv.c: Avoid implicit conversion between integer
types.
* libmisc/xmalloc.c: size should not be zero to avoid returning
NULL pointers.
* libmisc/hushed.c: Do not check *printf/*puts return value.
* libmisc/system.c: Avoid implicit conversion of integer to
boolean. safe_system last argument is a boolean.
* libmisc/system.c: Check return value of dup2.
* libmisc/system.c: Do not check *printf/*puts return value.
* libmisc/system.c: Do not check execve return value.
* libmisc/salt.c: Do not check *printf/*puts return value.
* libmisc/loginprompt.c: Do not check gethostname return value.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Do not check
gr_rewind/pw_rewind return value.
* libmisc/ttytype.c: Limit the number of parsed characters in the
sscanf format.
* libmisc/ttytype.c: Test if a type was really read.
* libmisc/sub.c: Do not check *printf/*puts return value.
* libmisc/sub.c: Avoid implicit conversion of integer to boolean.
* src/userdel.c: Fix typo in comment.
* src/userdel.c: Avoid implicit conversion of boolean to integer.
* src/userdel.c: safe_system last argument is a boolean.
* src/newusers.c: Avoid implicit conversion of boolean to integer.
* src/newusers.c: Avoid implicit conversion of integer to boolean.
* src/usermod.c: Add brackets.
* src/usermod.c: Avoid implicit conversion of characters or
integers to booleans.
* src/vipw.c: Avoid implicit conversion of integer to boolean.
* src/su.c: Avoid implicit conversion of integer to boolean.
* src/su.c: Add brackets.
* src/useradd.c: Avoid implicit conversion of characters or
integers to booleans.

14 years agoUpdated copyrights.
nekral-guest [Sun, 22 Aug 2010 13:04:54 +0000 (13:04 +0000)]
Updated copyrights.

14 years ago * libmisc/obscure.c, lib/prototypes.h (obscure): Return a bool
nekral-guest [Sun, 22 Aug 2010 12:49:07 +0000 (12:49 +0000)]
* libmisc/obscure.c, lib/prototypes.h (obscure): Return a bool
instead of an int.
* libmisc/obscure.c, libmisc/tz.c, src/passwd.c, lib/encrypt.c,
libmisc/copydir.c, lib/prototypes.h: Add splint annotations.
* libmisc/tz.c: Fix some const issues.
* libmisc/tz.c: Avoid multi-statements lines.
* libmisc/tz.c: Add brackets.
* libmisc/copydir.c: Do not check *printf/*puts return value.
* libmisc/copydir.c: Fail if we cannot set or reset the SELinux
fscreate context.
* libmisc/copydir.c: Use xmalloc instead of malloc.
* libmisc/copydir.c: Do not check lutimes return value
* src/vipw.c: Avoid implicit conversion of integer to boolean.
* src/su.c (iswheel): Return a bool instead of an int.
* src/passwd.c: Remove insert_crypt_passwd(). Use xstrdup instead.
* src/passwd.c: Return constant strings when sufficient.
* src/passwd.c: Do not check *printf/*puts return value.
* src/passwd.c: Avoid implicit conversion of character to boolean.
* src/passwd.c: Do not check sleep return value.
* src/sulogin.c: Do not check *printf/*puts return value.
* lib/encrypt.c: Do not check fprintf return value.

14 years ago * src/sulogin.c: Fix a const issue.
nekral-guest [Sat, 21 Aug 2010 20:37:23 +0000 (20:37 +0000)]
* src/sulogin.c: Fix a const issue.

14 years ago * src/passwd.c: Fix a const issue.
nekral-guest [Sat, 21 Aug 2010 19:55:46 +0000 (19:55 +0000)]
* src/passwd.c: Fix a const issue.
* src/passwd.c: Avoid multi-statements lines.

14 years agoFix additional const issues.
nekral-guest [Sat, 21 Aug 2010 19:22:32 +0000 (19:22 +0000)]
Fix additional const issues.

14 years ago * libmisc/copydir.c, lib/prototypes.h: Caller can choose not to
nekral-guest [Sat, 21 Aug 2010 17:31:45 +0000 (17:31 +0000)]
* libmisc/copydir.c, lib/prototypes.h: Caller can choose not to
copy the extended attributes (the SELinux context is hence reset)
* src/usermod.c: Copy the extended attributes.
* src/useradd.c: Only reset the SELinux context.

14 years ago * configure.in: Fixed typo.
nekral-guest [Sat, 21 Aug 2010 16:51:53 +0000 (16:51 +0000)]
* configure.in: Fixed typo.
Thanks to Peter Vrabec.

14 years ago * libmisc/console.c, libmisc/motd.c, libmisc/setupenv.c,
nekral-guest [Sat, 21 Aug 2010 15:32:53 +0000 (15:32 +0000)]
* libmisc/console.c, libmisc/motd.c, libmisc/setupenv.c,
libmisc/sulog.c, libmisc/hushed.c, libmisc/failure.c,
libmisc/loginprompt.c, libmisc/ttytype.c,
libmisc/pam_pass_non_interractive.c, src/userdel.c, src/login.c,
lib/commonio.c, lib/commonio.h: Fix some const issues.
* libmisc/motd.c: Avoid multi-statements lines.
* libmisc/motd.c: Support long MOTD_FILE.
* libmisc/list.c, lib/prototypes.h: Revert previous change.
dup_list and is_on_list are used with members as defined for the
group structure, and thus even if the list is not modified, the
list elements cannot be constant strings.
* libmisc/system.c: Avoid C++ comments.
* src/vipw.c: WITH_TCB cannot be tested inside a gettextized
string. Split the Usage string.
* lib/commonio.h: Re-indent.

14 years ago * libmisc/audit_help.c (audit_logger):pgname is not used. We let
nekral-guest [Sat, 21 Aug 2010 15:22:39 +0000 (15:22 +0000)]
* libmisc/audit_help.c (audit_logger):pgname is not used. We let
audit find out the name of the program.
* libmisc/audit_help.c: Re-indent.

14 years ago * lib/groupio.c: Avoid implicit conversion from signed to unsigned.
nekral-guest [Fri, 20 Aug 2010 20:35:52 +0000 (20:35 +0000)]
* lib/groupio.c: Avoid implicit conversion from signed to unsigned.

14 years ago * lib/commonio.c: Make sure there are no NULL pointer dereference.
nekral-guest [Fri, 20 Aug 2010 20:34:44 +0000 (20:34 +0000)]
* lib/commonio.c: Make sure there are no NULL pointer dereference.

14 years ago * libmisc/remove_tree.c: Ignore snprintf return value.
nekral-guest [Fri, 20 Aug 2010 20:27:34 +0000 (20:27 +0000)]
* libmisc/remove_tree.c: Ignore snprintf return value.

14 years ago * lib/prototypes.h, libmisc/list.c: dup_list() and is_on_list() do
nekral-guest [Fri, 20 Aug 2010 20:26:32 +0000 (20:26 +0000)]
* lib/prototypes.h, libmisc/list.c: dup_list() and is_on_list() do
not change the members of the list they receive. Added const
qualifiers.

14 years ago * src/usermod.c: Re-indent.
nekral-guest [Fri, 20 Aug 2010 18:24:33 +0000 (18:24 +0000)]
* src/usermod.c: Re-indent.

14 years ago * lib/commonio.c: Avoid multi-statements lines.
nekral-guest [Fri, 20 Aug 2010 18:09:14 +0000 (18:09 +0000)]
* lib/commonio.c: Avoid multi-statements lines.

14 years ago * man/po/fr.po: Fix a typo.
nekral-guest [Fri, 20 Aug 2010 17:57:33 +0000 (17:57 +0000)]
* man/po/fr.po: Fix a typo.

14 years agoKazakh translation update
bubulle [Thu, 24 Jun 2010 18:43:04 +0000 (18:43 +0000)]
Kazakh translation update

14 years ago * man/po/fr.po: Fix some typos. Minor updates.
nekral-guest [Mon, 12 Apr 2010 21:49:09 +0000 (21:49 +0000)]
* man/po/fr.po: Fix some typos. Minor updates.

14 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Mon, 12 Apr 2010 21:05:33 +0000 (21:05 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

14 years ago * man/newusers.8.xml, man/useradd.8.xml, man/groupadd.8.xml,
nekral-guest [Sun, 4 Apr 2010 23:17:11 +0000 (23:17 +0000)]
* man/newusers.8.xml, man/useradd.8.xml, man/groupadd.8.xml,
man/login.defs.d/UMASK.xml, man/login.defs.d/CREATE_HOME.xml,
man/login.defs.d/LOGIN_RETRIES.xml: Fix typos: choosen, overriden,
bahavior.

14 years ago * man/usermod.8.xml: Document changes of ownerships.
nekral-guest [Sun, 4 Apr 2010 21:23:02 +0000 (21:23 +0000)]
* man/usermod.8.xml: Document changes of ownerships.

14 years ago * man/vipw.8.xml: Fix formatting typo.
nekral-guest [Sun, 4 Apr 2010 20:57:54 +0000 (20:57 +0000)]
* man/vipw.8.xml: Fix formatting typo.
* man/vipw.8.xml: Document the login.defs parameters only when tcb
is enabled.

14 years ago2010-04-04 Nicolas François <nicolas.francois@centraliens.net>
nekral-guest [Sun, 4 Apr 2010 20:55:46 +0000 (20:55 +0000)]
2010-04-04  Nicolas François  <nicolas.francois@centraliens.net>

* src/useradd.c: spool is a constant string.
* src/useradd.c: Set the new copy_tree's paramater 'copy_root' to false

2010-04-04  Nicolas François  <nicolas.francois@centraliens.net>

* src/usermod.c: move_home() is only called if mflg is set.
* src/usermod.c: Fail is -m is provided but the old home directory
is not a directory.
* src/usermod.c: Use the previous improvement of copy_tree to
provide better error diagnosis.
* src/usermod.c: When rename() is used, also change the ownership.
* src/usermod.c: Do not change the ownership of the root directory
twice.
* src/usermod.c: When -u is provided, only change the ownership of
the home directory if it is a directory.
* src/usermod.c: Also change ownerships when -g is used.

2010-04-04  Nicolas François  <nicolas.francois@centraliens.net>

* lib/prototypes.h, libmisc/copydir.c: Add the old UID and GID to
copy_tree to detect when ownership shall be changed.
* libmisc/copydir.c: Document the behavior when the IDs are set to
-1.
* lib/prototypes.h, libmisc/copydir.c (copy_tree): Add parameter
copy_root.
* libmisc/copydir.c: error() and ctx can be static.
* libmisc/copydir.c (copy_hardlink): Remove parameter src.

2010-04-04  Nicolas François  <nicolas.francois@centraliens.net>

* libmisc/chowndir.c: Dynamically allocate memory to support
path longer than 1024 characters.
* libmisc/chowndir.c: Fix typos in documentation.
* libmisc/chowndir.c: Support and document the behavior when a old
or new ID is set to -1.
* libmisc/chowndir.c: Improved error detection when chown fails.
* libmisc/chowndir.c: Harmonize error handling strategy when an
error occurs: stop changing ownership as soon as an error was
detected.

14 years ago * man/hu/passwd.5: Fix formatting typo.
nekral-guest [Sun, 4 Apr 2010 20:48:29 +0000 (20:48 +0000)]
* man/hu/passwd.5: Fix formatting typo.
* man/id/login.1: Likewise.

14 years ago * man/vipw.8.xml: When TCB is enabled, vipw uses login.defs.
nekral-guest [Wed, 31 Mar 2010 19:52:30 +0000 (19:52 +0000)]
* man/vipw.8.xml: When TCB is enabled, vipw uses login.defs.

14 years agoFix typos.
nekral-guest [Wed, 31 Mar 2010 12:24:03 +0000 (12:24 +0000)]
Fix typos.

14 years agoFix typo.
nekral-guest [Wed, 31 Mar 2010 09:27:11 +0000 (09:27 +0000)]
Fix typo.

14 years ago * NEWS, libmisc/copydir.c: When a hardlink is detected, the
nekral-guest [Tue, 30 Mar 2010 23:14:04 +0000 (23:14 +0000)]
* NEWS, libmisc/copydir.c: When a hardlink is detected, the
original hardlink should not be removed.

14 years ago * po/POTFILES.in, libmisc/Makefile.am, lib/prototypes.h,
nekral-guest [Tue, 30 Mar 2010 21:54:29 +0000 (21:54 +0000)]
* po/POTFILES.in, libmisc/Makefile.am, lib/prototypes.h,
libmisc/remove_tree.c, libmisc/copydir.c: Split remove_tree()
outside of copydir.c to avoid linking against libacl or libattr.

14 years ago * src/su.c: shell's name must be -su when a su fakes a login.
nekral-guest [Tue, 30 Mar 2010 21:32:36 +0000 (21:32 +0000)]
* src/su.c: shell's name must be -su when a su fakes a login.

14 years ago * NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml,
nekral-guest [Tue, 30 Mar 2010 21:01:27 +0000 (21:01 +0000)]
* NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml,
man/usermod.8.xml, src/Makefile.am: Added support for ACLs and
Extended Attributes.

14 years ago * libmisc/copydir.c: Document the sections closed by #endif
nekral-guest [Tue, 30 Mar 2010 21:00:43 +0000 (21:00 +0000)]
* libmisc/copydir.c: Document the sections closed by #endif

14 years ago * etc/login.defs: Updated description of UMASK to indicate its
nekral-guest [Sat, 27 Mar 2010 20:11:21 +0000 (20:11 +0000)]
* etc/login.defs: Updated description of UMASK to indicate its
usage by pam_umask.
* man/login.defs.d/UMASK.xml: Likewise.

14 years ago * man/vipw.8.xml: Add section ENVIRONMENT.
nekral-guest [Sat, 27 Mar 2010 20:09:49 +0000 (20:09 +0000)]
* man/vipw.8.xml: Add section ENVIRONMENT.

14 years ago * etc/login.defs: Updated description of UMASK to indicate its
nekral-guest [Fri, 26 Mar 2010 11:53:06 +0000 (11:53 +0000)]
* etc/login.defs: Updated description of UMASK to indicate its
usage by pam_umask.

14 years ago * man/login.1.xml: login does not check for new mails in PAM
nekral-guest [Thu, 25 Mar 2010 20:38:31 +0000 (20:38 +0000)]
* man/login.1.xml: login does not check for new mails in PAM
enabled versions. This is done by pam_mail.

14 years ago * NEWS, src/chpasswd.c, man/chpasswd.8.xml, man/login.defs.5.xml:
nekral-guest [Thu, 25 Mar 2010 20:35:59 +0000 (20:35 +0000)]
* NEWS, src/chpasswd.c, man/chpasswd.8.xml, man/login.defs.5.xml:
PAM enabled versions: restore the -e option to allow restoring
passwords without knowing those passwords. Restore together the -m
and -c options.

14 years ago * src/su.c, src/vipw.c, src/newgrp.c: When the child is
nekral-guest [Tue, 23 Mar 2010 13:05:06 +0000 (13:05 +0000)]
* src/su.c, src/vipw.c, src/newgrp.c: When the child is
interrupted, stop ourself with a SIGSTOP signal.

14 years ago * src/newgrp.c: Limit the scope of variable pid.
nekral-guest [Tue, 23 Mar 2010 11:26:34 +0000 (11:26 +0000)]
* src/newgrp.c: Limit the scope of variable pid.
* src/login_nopam.c: Limit the scope of variables end, lineno, i,
str_len.
* src/logoutd.c: Limit the scope of variable c.
* src/vipw.c: Re-indent.
* src/vipw.c: Close the file after the creation of the backup.
* src/useradd.c (set_default): Close input file on failure.
* src/useradd.c: Limit the scope of variables spool, file, fd, gr,
gid, mode.
* src/passwd.c: Limit the scope of variables last and ok.
* src/chage.c: Fix typo (non breaking space).
* src/login.c: Limit the scope of variables erasechar killchar, c,
failed.
* src/groups.c: Limit the scope of variable ngroups, pri_grp, i.
* src/id.c: Limit the scope of variable i.

14 years ago * lib/utent.c (getutline): Remove getutline(). This function is
nekral-guest [Tue, 23 Mar 2010 08:56:52 +0000 (08:56 +0000)]
* lib/utent.c (getutline): Remove getutline(). This function is
no more used.
* lib/groupmem.c: Limit the scope of variable i.
* lib/shadow.c: Avoid implicit conversion of pointers and integers
to booleans.
* lib/shadow.c: Added brackets.
* libmisc/limits.c: Limit the scope of variable tmpmask.
* libmisc/copydir.c: Close opened file on failure.
* libmisc/loginprompt.c: Limit the scope of variable envc.
* libmisc/find_new_uid.c, libmisc/find_new_gid.c: Limit the scope
of variable id.

14 years ago * libmisc/find_new_gid.c, libmisc/find_new_uid.c: Detect some
nekral-guest [Sun, 21 Mar 2010 01:20:50 +0000 (01:20 +0000)]
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Detect some
misconfigurations of UID_MIN, UID_MAX, SYS_UID_MIN, SYS_UID_MAX (and
the GID equivalents)