]> granicus.if.org Git - shadow/log
shadow
12 years ago * NEWS, src/userdel.c, man/userdel.8.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:37:32 +0000 (18:37 +0000)]
* NEWS, src/userdel.c, man/userdel.8.xml: Add --root option. Open
audit and syslog after the potential chroot. userdel's usage split
in smaller messages.

12 years ago * NEWS, src/useradd.c, man/useradd.8.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:37:25 +0000 (18:37 +0000)]
* NEWS, src/useradd.c, man/useradd.8.xml: Add --root option. Open
audit after the potential chroot.

12 years ago * lib/prototypes.h, libmisc/Makefile.am, libmisc/root_flag.c,
nekral-guest [Sun, 6 Nov 2011 18:37:19 +0000 (18:37 +0000)]
* lib/prototypes.h, libmisc/Makefile.am, libmisc/root_flag.c,
po/POTFILES.in: Add process_root_flag() to process the --root
option and chroot so that the chroot config is used and changes
are applied to the chroot.

12 years ago * man/ja/Makefile.am, man/fr/Makefile.am, man/ru/Makefile.am,
nekral-guest [Sat, 22 Oct 2011 08:59:08 +0000 (08:59 +0000)]
* man/ja/Makefile.am, man/fr/Makefile.am, man/ru/Makefile.am,
man/sv/Makefile.am, man/pl/Makefile.am, man/zh_CN/Makefile.am,
man/it/Makefile.am, man/Makefile.am: Include man_nopam in
EXTRA_DIST only when USE_PAM (they are already in man_MANS
otherwise).

12 years ago * man/su.1.xml: Document that su -c does not providea controlling
nekral-guest [Sat, 22 Oct 2011 08:56:51 +0000 (08:56 +0000)]
* man/su.1.xml: Document that su -c does not providea controlling
terminal.

12 years ago * src/sulogin.c (main): env is only used when USE_PAM is not set.
nekral-guest [Tue, 18 Oct 2011 20:28:01 +0000 (20:28 +0000)]
* src/sulogin.c (main): env is only used when USE_PAM is not set.

12 years ago * lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c:
nekral-guest [Tue, 18 Oct 2011 20:23:33 +0000 (20:23 +0000)]
* lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c:
Add splint annotations.

12 years ago * lib/nscd.c: Remove unused variable.
nekral-guest [Tue, 18 Oct 2011 20:16:00 +0000 (20:16 +0000)]
* lib/nscd.c: Remove unused variable.

12 years ago * src/newusers.c: Fix typo.
nekral-guest [Tue, 18 Oct 2011 20:13:37 +0000 (20:13 +0000)]
* src/newusers.c: Fix typo.
* src/useradd.c: Likewise.

12 years ago * man/login.defs.d/LOGIN_STRING.xml: Fix typo.
nekral-guest [Sat, 15 Oct 2011 16:01:07 +0000 (16:01 +0000)]
* man/login.defs.d/LOGIN_STRING.xml: Fix typo.

13 years agoMiscellaneous:
nekral-guest [Sun, 18 Sep 2011 21:02:43 +0000 (21:02 +0000)]
Miscellaneous:
* lib/prototypes, libmisc/basename.c (Basename): Input is a
constant string.
* lib/prototypes.h, lib/spawn.h, lib/spawn.c, src/userdel.c,
lib/nscd.c, lib/Makefile.am: Delete spawn.h. Move from spawn.h to
prototypes.h.
* src/userdel.c: Remove unused variables.
* lib/nscd.c: Remove unused header files.
* lib/nscd.c: Add the program name to error messages.
* lib/nscd.c: Indicate when nscd does not terminate normally (signal).
* lib/spawn.c: Updated header.
* lib/spawn.c: Flush stdout and stderr to avoid inheriting from
ongoing buffers.
* lib/spawn.c: Avoid implicit conversion of pointer to boolean.
* lib/spawn.c: Replace perror by a complete message.
* lib/spawn.c: Continue to wait for the child if another child
terminates.
* lib/prototypes.h: The name field from cleanup_info_mod is a
constant string. (username).

13 years agoRe-indent.
nekral-guest [Sun, 18 Sep 2011 20:44:09 +0000 (20:44 +0000)]
Re-indent.

13 years ago * libmisc/cleanup.c: Spawn children should no trigger cleanup
nekral-guest [Sun, 18 Sep 2011 20:43:28 +0000 (20:43 +0000)]
* libmisc/cleanup.c: Spawn children should no trigger cleanup
actions. Make sure only the parent (initial caller) perform the
cleanup actions.

13 years ago * libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
nekral-guest [Sun, 18 Sep 2011 20:41:38 +0000 (20:41 +0000)]
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
the format fits in rounds_prefix.
* libmisc/loginprompt.c: Likewise.

13 years ago * libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
nekral-guest [Sun, 18 Sep 2011 20:40:50 +0000 (20:40 +0000)]
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
the format fits in rounds_prefix.

13 years ago * src/grpconv.c: Fail if not called correctly.
nekral-guest [Sun, 18 Sep 2011 20:26:27 +0000 (20:26 +0000)]
* src/grpconv.c: Fail if not called correctly.
* src/grpconv.c: At the end of main, the passwd and shadow files
are locked. No need to check before unlocking. No need to set the
lock as false neither since there cannot be anymore failures.

13 years ago * src/chage.c: EPOCH is not needed, it's converted to -1 by
nekral-guest [Sun, 18 Sep 2011 20:24:36 +0000 (20:24 +0000)]
* src/chage.c: EPOCH is not needed, it's converted to -1 by
strtoday(). But we need to support "-1" specifically.
* src/chage.c: Fix usage: LOGIN is mandatory.
* src/chage.c: Display disabled expiry or last change as "-1"
instead of 1969-12-31. 1969-12-31 is still supported as input from
the user.
* src/chage.c: Exit cleanly with fail_exit() (lock files were not
removed).

13 years ago * src/useradd.c: Remove def_file. It was always set to
nekral-guest [Sun, 18 Sep 2011 18:00:06 +0000 (18:00 +0000)]
* src/useradd.c: Remove def_file. It was always set to
USER_DEFAULTS_FILE.
* src/useradd.c: Fix cut&paste issue causing bad warning when
the useradd.default file contains an invalid INACTIVE= value.
* src/useradd.c: Added missing end of line for rename errors.
* src/useradd.c: Added -D synopsis to the usage message.
* src/useradd.c: Do not scale_age(-1), just use -1.
* src/useradd.c: Added FIXME to be fixed later.
* src/useradd.c: Allow -e -1 when there is no shadow file.
* src/useradd.c: Fail, but do not print the usage message when the
-e argument is not valid.
* src/useradd.c: No need to check for oflg since uflg is
already checked.

13 years ago * src/su.c: Too much const were added on 2011-08-15. pw in
nekral-guest [Sun, 18 Sep 2011 17:47:03 +0000 (17:47 +0000)]
* src/su.c: Too much const were added on 2011-08-15. pw in
save_caller_context() is allocated and freed.
* src/su.c: Added missing #endif indication
* src/su.c save_caller_context(): password only needed if
SU_ACCESS and !USE_PAM.

13 years ago * src/usermod.c: date_to_str() is always called with negativ set
nekral-guest [Sun, 18 Sep 2011 17:34:21 +0000 (17:34 +0000)]
* src/usermod.c: date_to_str() is always called with negativ set
to "never", remove this argument.
* src/usermod.c: Added missing cast for gr_free argument.

13 years ago * src/pwconv.c: Fail if not called correctly.
nekral-guest [Sun, 18 Sep 2011 17:32:04 +0000 (17:32 +0000)]
* src/pwconv.c: Fail if not called correctly.
* src/pwconv.c: At the end of main, the passwd and shadow files
are locked. No need to check before unlocking.

13 years ago * src/newusers.c: Initially set the passwd's password to '*'
nekral-guest [Sun, 18 Sep 2011 17:29:52 +0000 (17:29 +0000)]
* src/newusers.c: Initially set the passwd's password to '*'
instead of 'x'. Only when it is confirmed that a shadow entry is
(will be) added, set the passwd's password to 'x'.
* src/newusers.c: An invalid line is an error. A failure needs to
be reported.

13 years ago * src/gpasswd.c: Remove log_gpasswd_success_gshadow(). Writing in
nekral-guest [Sun, 18 Sep 2011 17:27:18 +0000 (17:27 +0000)]
* src/gpasswd.c: Remove log_gpasswd_success_gshadow(). Writing in
gshadowis the last sub-task.

13 years ago * src/chsh.c: No needto remove lines tarting with '#' from
nekral-guest [Sun, 18 Sep 2011 17:24:15 +0000 (17:24 +0000)]
* src/chsh.c: No needto remove lines tarting with '#' from
/etc/shells. This is already done by getusershell() and these
shell would fail the access(X_OK) test.

13 years ago * man/generate_mans.mak: Fix the generation of translated man
nekral-guest [Sun, 18 Sep 2011 17:02:10 +0000 (17:02 +0000)]
* man/generate_mans.mak: Fix the generation of translated man
pages. xml2po removed the comment from empty headers and the
config was no more inserted.

13 years ago * man/login.defs.d/QUOTAS_ENAB.xml: Document the dependency
nekral-guest [Sun, 18 Sep 2011 17:00:28 +0000 (17:00 +0000)]
* man/login.defs.d/QUOTAS_ENAB.xml: Document the dependency
between /etc/limits and QUOTAS_ENAB.

13 years ago * man/chage.1.xml: The LOGIN argument is not optional.
nekral-guest [Sun, 18 Sep 2011 16:59:16 +0000 (16:59 +0000)]
* man/chage.1.xml: The LOGIN argument is not optional.

13 years ago * po/POTFILES.in: Added lib/spawn.c.
nekral-guest [Sun, 18 Sep 2011 16:58:12 +0000 (16:58 +0000)]
* po/POTFILES.in: Added lib/spawn.c.

13 years ago2011-08-20 Jonathan Nieder <jrnieder@gmail.com>
nekral-guest [Sat, 20 Aug 2011 13:33:38 +0000 (13:33 +0000)]
2011-08-20  Jonathan Nieder  <jrnieder@gmail.com>

* lib/Makefile.am: Added lib/spawn.c and lib/spawn.h.
* lib/nscd.c, lib/spawn.c, lib/spawn.h: It is not possible to
differentiate between an nscd failure, and a failure to execute
due to no nscd with posix_spawn. Use our own run_command routine.
* src/userdel.c: Use run_command()

13 years agore-indent.
nekral-guest [Mon, 15 Aug 2011 14:40:42 +0000 (14:40 +0000)]
re-indent.

13 years ago * src/groupmod.c: Check atexit failures.
nekral-guest [Mon, 15 Aug 2011 14:38:49 +0000 (14:38 +0000)]
* src/groupmod.c: Check atexit failures.

13 years ago * src/groupmod.c: Ignore return value from snprintf.
nekral-guest [Mon, 15 Aug 2011 14:22:33 +0000 (14:22 +0000)]
* src/groupmod.c: Ignore return value from snprintf.
* src/groupmod.c: Add static qualifier to the cleanup structures.

13 years ago * src/usermod.c: Do not assign static to NULL.
nekral-guest [Mon, 15 Aug 2011 09:56:43 +0000 (09:56 +0000)]
* src/usermod.c: Do not assign static to NULL.
* src/usermod.c (date_to_str): buf needs to be unique (e.g.
independent from negativ), and is an out buffer.
* src/usermod.c: Ignore return value from snprintf, and force
nul-termination of buffer.
* src/usermod.c: Improve memory management.
* src/usermod.c: An audit bloc was not reachable, moved above on
success to move the home directory.
* src/usermod.c: Ignore close() return value for the mailbox
(opened read only).

13 years ago * src/su.c: Added const modifiers.
nekral-guest [Mon, 15 Aug 2011 09:25:58 +0000 (09:25 +0000)]
* src/su.c: Added const modifiers.
* lib/prototypes: Synchronize splint annotations.

13 years ago * src/su.c: Add splint annotations.
nekral-guest [Sun, 14 Aug 2011 21:44:46 +0000 (21:44 +0000)]
* src/su.c: Add splint annotations.
* src/su.c: Set caller_on_console as boolean.
* src/su.c: Ignore retunr value from fputs (usage) / puts (prompt).
* src/su.c: Improved memory management.

13 years ago * src/chgpasswd.c, src/chpasswd.c, src/newusers.c: Replace cflg by
nekral-guest [Sun, 14 Aug 2011 14:44:35 +0000 (14:44 +0000)]
* src/chgpasswd.c, src/chpasswd.c, src/newusers.c: Replace cflg by
a test on crypt_method.

13 years ago * src/chgpasswd.c: Add splint annotations.
nekral-guest [Sun, 14 Aug 2011 14:37:17 +0000 (14:37 +0000)]
* src/chgpasswd.c: Add splint annotations.
* src/chpasswd.c: Likewise.
* src/newusers.c: Likewise.
* libmisc/salt.c, lib/prototypes.h (crypt_make_salt): Likewise.

13 years ago * libmisc/chowndir.c: Add splint annotations.
nekral-guest [Sun, 14 Aug 2011 14:00:14 +0000 (14:00 +0000)]
* libmisc/chowndir.c: Add splint annotations.

13 years ago * lib/gshadow_.h: Fix typo in comment.
nekral-guest [Sun, 14 Aug 2011 13:16:54 +0000 (13:16 +0000)]
* lib/gshadow_.h: Fix typo in comment.

13 years ago * lib/prototypes.h, libmisc/getgr_nam_gid.c: getgr_nam_gid()
nekral-guest [Sun, 14 Aug 2011 13:16:26 +0000 (13:16 +0000)]
* lib/prototypes.h, libmisc/getgr_nam_gid.c: getgr_nam_gid()
returns an allocated structure.

13 years ago * src/su.c: Add annotations to indicate that su_failure() does
nekral-guest [Sun, 14 Aug 2011 13:15:20 +0000 (13:15 +0000)]
* src/su.c: Add annotations to indicate that su_failure() does
not return.

13 years ago * lib/commonio.c: Display PID as unsigned long.
nekral-guest [Sat, 30 Jul 2011 01:48:42 +0000 (01:48 +0000)]
* lib/commonio.c: Display PID as unsigned long.

13 years ago * src/useradd.c: Remove unused Zflg.
nekral-guest [Sat, 30 Jul 2011 01:47:52 +0000 (01:47 +0000)]
* src/useradd.c: Remove unused Zflg.

13 years ago * src/chgpasswd.c: Fix typo sp -> sg. sg_namp -> sg_name
nekral-guest [Sat, 30 Jul 2011 01:46:23 +0000 (01:46 +0000)]
* src/chgpasswd.c: Fix typo sp -> sg. sg_namp -> sg_name
* src/chgpasswd.c: Always update the group file when SHADOWGRP is
not enabled.

13 years ago * src/newgrp.c: Fix typo in notreached annotation.
nekral-guest [Sat, 30 Jul 2011 01:41:56 +0000 (01:41 +0000)]
* src/newgrp.c: Fix typo in notreached annotation.

13 years ago * src/usermod.c: Add annotations to indicate that fail_exit() does
nekral-guest [Sat, 30 Jul 2011 01:41:03 +0000 (01:41 +0000)]
* src/usermod.c: Add annotations to indicate that fail_exit() does
not return.
* src/usermod.c: Fix typo in notreached annotation.

13 years ago * libmisc/find_new_uid.c: free (used_uids) on return.
nekral-guest [Sat, 30 Jul 2011 01:38:07 +0000 (01:38 +0000)]
* libmisc/find_new_uid.c: free (used_uids) on return.
* libmisc/find_new_gid.c: free (used_gids) on return.

13 years ago * lib/commonio.c: Fix NIS commit from 2011-07-14.
nekral-guest [Thu, 28 Jul 2011 15:19:40 +0000 (15:19 +0000)]
* lib/commonio.c: Fix NIS commit from 2011-07-14.

13 years ago * NEWS, src/chpasswd.c: Create a shadow entry if the password is
nekral-guest [Thu, 28 Jul 2011 15:18:39 +0000 (15:18 +0000)]
* NEWS, src/chpasswd.c: Create a shadow entry if the password is
set to 'x' in passwd and there are no entry in shadow for the
user.
* NEWS, src/chgpasswd.c: Create a gshadow entry if the password is
set to 'x' in group and there are no entry in gshadow for the
group.

13 years ago * NEWS, src/chpasswd.c: Create a shadow entry if the password is
nekral-guest [Thu, 28 Jul 2011 15:17:28 +0000 (15:17 +0000)]
* NEWS, src/chpasswd.c: Create a shadow entry if the password is
set to 'x' in passwd and there are no entry in shadow for the
user.
* NEWS, src/chgpasswd.c: Create a gshadow entry if the password is
set to 'x' in group and there are no entry in gshadow for the
group.

13 years ago * src/pwunconv.c: Exit after printing usage when arguments or
nekral-guest [Thu, 28 Jul 2011 14:40:56 +0000 (14:40 +0000)]
* src/pwunconv.c: Exit after printing usage when arguments or
options are provided.
* src/pwunconv.c: Re-indent.
* src/pwunconv.c: Open the shadow file read only.
* src/grpunconv.c: Exit after printing usage when arguments or
options are provided.
* src/grpunconv.c: Open the gshadow file read only.

13 years ago * src/chgpasswd.c: Fix typo.
nekral-guest [Thu, 28 Jul 2011 14:36:24 +0000 (14:36 +0000)]
* src/chgpasswd.c: Fix typo.

13 years agoAdd more info on the change of behavior.
nekral-guest [Sat, 23 Jul 2011 11:05:59 +0000 (11:05 +0000)]
Add more info on the change of behavior.

13 years ago * NEWS, src/login.c: Do not log in utmp / utmpx / wtmp when PAM is
nekral-guest [Sat, 23 Jul 2011 11:03:50 +0000 (11:03 +0000)]
* NEWS, src/login.c: Do not log in utmp / utmpx / wtmp when PAM is
enabled. This is already done by pam_lastlog.

13 years ago * src/chpasswd.c: Add annotations to indicate that usage() does
nekral-guest [Sat, 23 Jul 2011 08:14:15 +0000 (08:14 +0000)]
* src/chpasswd.c: Add annotations to indicate that usage() does
not return.
* src/chpasswd.c: Reindent.
* src/chpasswd.c: Remove dead code. No need to set crypt_method
to NULL when it is already NULL. sflg is only set if crypt_method
is not NULL.

13 years ago * src/lastlog.c: Add annotations to indicate that usage() does not
nekral-guest [Sat, 23 Jul 2011 08:10:27 +0000 (08:10 +0000)]
* src/lastlog.c: Add annotations to indicate that usage() does not
return.

13 years ago * src/faillog.c: Add annotations to indicate that usage() does not
nekral-guest [Fri, 22 Jul 2011 23:59:57 +0000 (23:59 +0000)]
* src/faillog.c: Add annotations to indicate that usage() does not
return.
* src/faillog.c: Fix message: this is faillog, not lastlog.
* src/faillog.c: Check that there are no extra arguments after
parsing the options.

13 years ago * src/chgpasswd.c: Add annotations to indicate that usage() does
nekral-guest [Fri, 22 Jul 2011 23:52:08 +0000 (23:52 +0000)]
* src/chgpasswd.c: Add annotations to indicate that usage() does
not return.
* src/chgpasswd.c: Split usage in smaller parts. Those parts are
already translated for chpasswd. Usage is now closer to
chpasswd's.
* src/chgpasswd.c: Remove dead code. No need to set crypt_method
to NULL when it is already NULL. sflg is only set if crypt_method
is not NULL.

13 years ago * src/expiry.c: Remove dead code.
nekral-guest [Fri, 22 Jul 2011 22:39:30 +0000 (22:39 +0000)]
* src/expiry.c: Remove dead code.
* src/expiry.c: Improve comments.

13 years ago * src/grpck.c: Added comments.
nekral-guest [Fri, 22 Jul 2011 22:07:23 +0000 (22:07 +0000)]
* src/grpck.c: Added comments.
* src/grpck.c: Avoid implicit conversion of pointer to boolean.
* src/grpck.c: Remove dead code. argc cannot be lower than optind.
Avoid checking twice in a row for NULL != list[i].

13 years ago * libmisc/find_new_gid.c, libmisc/find_new_uid.c: Fail in case of
nekral-guest [Fri, 22 Jul 2011 21:53:01 +0000 (21:53 +0000)]
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Fail in case of
invalid configuration.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Updated
comments.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Be more strict
on the loop stop conditions. Stop if we passed the limit, even if
the limit itself was never noticed.

13 years ago * man/po/fr.po: Fix some spacing issues due to configuration
nekral-guest [Thu, 14 Jul 2011 14:14:36 +0000 (14:14 +0000)]
* man/po/fr.po: Fix some spacing issues due to configuration
variants.

13 years ago * src/passwd.c: Overflow when computing the number of days based
nekral-guest [Thu, 14 Jul 2011 14:03:19 +0000 (14:03 +0000)]
* src/passwd.c: Overflow when computing the number of days based
on the scaling. Use of long long needed.

13 years ago * NEWS, lib/commonio.h, lib/commonio.c: Additional messages to
nekral-guest [Thu, 14 Jul 2011 13:58:17 +0000 (13:58 +0000)]
* NEWS, lib/commonio.h, lib/commonio.c: Additional messages to
indicate why locking failed.
* NEWS, lib/commonio.c: Fix the sort algorithm in case of NIS. NIS
entries were dropped.
* lib/commonio.c: NIS entries can start by '+' or '-'.

13 years ago * NEWS, src/groupmod.c: When the gshadow file exists but there are
nekral-guest [Thu, 14 Jul 2011 13:30:05 +0000 (13:30 +0000)]
* NEWS, src/groupmod.c: When the gshadow file exists but there are
no gshadow entries, an entry is created if the password is changed
and group requires a shadow entry.

13 years ago * src/usermod.c (process_flags): Indicate that the user name is
nekral-guest [Thu, 14 Jul 2011 13:29:59 +0000 (13:29 +0000)]
* src/usermod.c (process_flags): Indicate that the user name is
invalid, instead of just a 'field'.

13 years ago * src/usermod.c (process_flags): Do not display the usage in case
nekral-guest [Thu, 14 Jul 2011 13:29:54 +0000 (13:29 +0000)]
* src/usermod.c (process_flags): Do not display the usage in case
of an invalid -f value (similar to -e).

13 years ago * src/usermod.c (new_pwent): Document that pw_locate will not fail
nekral-guest [Thu, 14 Jul 2011 13:29:48 +0000 (13:29 +0000)]
* src/usermod.c (new_pwent): Document that pw_locate will not fail
because getpwnam returned successfully.

13 years ago * man/usermod.8.xml: Document behavior of an empty EXPIRE_DATE.
nekral-guest [Thu, 14 Jul 2011 13:29:43 +0000 (13:29 +0000)]
* man/usermod.8.xml: Document behavior of an empty EXPIRE_DATE.
* man/usermod.8.xml: Document that the mail spool might have to be
renamed (as for the homedir)

13 years ago * NEWS, src/usermod.c; man/usermod.8.xml: When the shadow file
nekral-guest [Thu, 14 Jul 2011 13:29:37 +0000 (13:29 +0000)]
* NEWS, src/usermod.c; man/usermod.8.xml: When the shadow file
exists but there are no shadow entries, an entry has to be created
if the password is changed and passwd requires a shadow entry, or
if aging features are used (-e or -f). Document this and also that
-e and -f require a shadow file.

13 years ago * src/usermod.c (update_group, update_gshadow): Reduce complexity
nekral-guest [Thu, 14 Jul 2011 13:29:32 +0000 (13:29 +0000)]
* src/usermod.c (update_group, update_gshadow): Reduce complexity
and document checks. Some checks were always true/false within
their call context.

13 years ago * src/usermod.c (update_gshadow): is_member was computed twice.
nekral-guest [Thu, 14 Jul 2011 13:29:27 +0000 (13:29 +0000)]
* src/usermod.c (update_gshadow): is_member was computed twice.

13 years ago * src/usermod.c: usage() does not return. Add annotations.
nekral-guest [Thu, 14 Jul 2011 13:29:22 +0000 (13:29 +0000)]
* src/usermod.c: usage() does not return. Add annotations.

13 years ago * src/usermod.c (process_flags): Check for oflg is not needed to
nekral-guest [Thu, 14 Jul 2011 13:29:16 +0000 (13:29 +0000)]
* src/usermod.c (process_flags): Check for oflg is not needed to
check if changes are needed.

13 years ago * src/usermod.c (process_flags): Report usage if no options are
nekral-guest [Thu, 14 Jul 2011 13:29:10 +0000 (13:29 +0000)]
* src/usermod.c (process_flags): Report usage if no options are
provided. Update the error message.
* src/usermod.c (process_flags): Check option compatibility and
dependency before options are discarded when no changes are
requested.

13 years ago * src/usermod.c (move_home): It is always an error to use -m if
nekral-guest [Thu, 14 Jul 2011 13:29:05 +0000 (13:29 +0000)]
* src/usermod.c (move_home): It is always an error to use -m if
the new home directory already exist (independently from the
existence of the old home directory did not exist)

13 years ago * src/usermod.c: Fix typo in comment.
nekral-guest [Thu, 14 Jul 2011 13:28:59 +0000 (13:28 +0000)]
* src/usermod.c: Fix typo in comment.

13 years ago * src/groupmod.c: Avoid implicit conversion of pointer to boolean.
nekral-guest [Fri, 8 Jul 2011 19:58:40 +0000 (19:58 +0000)]
* src/groupmod.c: Avoid implicit conversion of pointer to boolean.
* src/groupmod.c: osgrp can be set only if pflg || nflg. No need
to check for pflg || nflg again

13 years ago * configure.in: Fix typo. libcrack default is 'no'.
nekral-guest [Fri, 8 Jul 2011 19:57:08 +0000 (19:57 +0000)]
* configure.in: Fix typo. libcrack default is 'no'.

13 years ago * lib/fields.c: Fixed typo from 2010-02-15. field insteadof cp
nekral-guest [Fri, 8 Jul 2011 19:56:18 +0000 (19:56 +0000)]
* lib/fields.c: Fixed typo from 2010-02-15. field insteadof cp
ought to be checked.
* src/vipw.c: Use Prog instead of progname. This is needed since
Prog is used in the library.

13 years agoFix typo in comment.
nekral-guest [Fri, 8 Jul 2011 19:51:32 +0000 (19:51 +0000)]
Fix typo in comment.

13 years agoFixed typo. user_home -> mailfile.
nekral-guest [Fri, 8 Jul 2011 19:50:42 +0000 (19:50 +0000)]
Fixed typo. user_home -> mailfile.

13 years ago * man/*.xml, man/config.xml.in: Add source and version
nekral-guest [Fri, 8 Jul 2011 19:49:09 +0000 (19:49 +0000)]
* man/*.xml, man/config.xml.in: Add source and version
information. This reduce the amount of warnings during the
manpages generation.

13 years ago * man/po/ru.po: Add space between option and argument.
nekral-guest [Sat, 25 Jun 2011 09:13:14 +0000 (09:13 +0000)]
* man/po/ru.po: Add space between option and argument.

13 years ago * man/passwd.1.xml: Added reference to chpasswd(8).
nekral-guest [Sat, 25 Jun 2011 09:03:05 +0000 (09:03 +0000)]
* man/passwd.1.xml: Added reference to chpasswd(8).

13 years agoSpanish translation update
bubulle [Sat, 18 Jun 2011 05:33:27 +0000 (05:33 +0000)]
Spanish translation update

13 years agoIgnore generated files.
nekral-guest [Thu, 16 Jun 2011 21:26:35 +0000 (21:26 +0000)]
Ignore generated files.

13 years ago * libmisc/isexpired.c: Added parenthesis.
nekral-guest [Thu, 16 Jun 2011 21:25:36 +0000 (21:25 +0000)]
* libmisc/isexpired.c: Added parenthesis.
* libmisc/env.c: Added comments.
* libmisc/env.c: Avoid implicit conversion of pointer to boolean.

13 years ago * src/su.c: environ is provided by <unistd.h>.
nekral-guest [Thu, 16 Jun 2011 21:21:29 +0000 (21:21 +0000)]
* src/su.c: environ is provided by <unistd.h>.
* src/su.c: Added function prototypes.
* src/su.c: Rename shellstr parameter to shellname to avoid
collision with static variable.
* NEWS, src/su.c: Added support for PAM modules which change
PAM_USER.

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

13 years ago * src/su.c: After prepare_pam_close_session() there is no need to
nekral-guest [Mon, 13 Jun 2011 18:27:46 +0000 (18:27 +0000)]
* src/su.c: After prepare_pam_close_session() there is no need to
close the session in the child. Added pam_setcred to
prepare_pam_close_session().

13 years ago * src/su.c: Also drop the controlling terminal when PAM is not
nekral-guest [Mon, 13 Jun 2011 18:27:40 +0000 (18:27 +0000)]
* src/su.c: Also drop the controlling terminal when PAM is not
used.
* src/su.c: Remove run_shell().

13 years ago * src/su.c (prepare_pam_close_session): Extract the creation of a
nekral-guest [Mon, 13 Jun 2011 18:27:34 +0000 (18:27 +0000)]
* src/su.c (prepare_pam_close_session): Extract the creation of a
child and listening for signal in the parent from run_shell().
prepare_pam_close_session() is now executed before the creation of
the pam session and before the UID is changed. This allows to
close the session as root.

13 years ago * src/su.c: Extract export of environment from main().
nekral-guest [Mon, 13 Jun 2011 18:27:28 +0000 (18:27 +0000)]
* src/su.c: Extract export of environment from main().

13 years ago * src/su.c: Extract command line processing from main().
nekral-guest [Mon, 13 Jun 2011 18:27:23 +0000 (18:27 +0000)]
* src/su.c: Extract command line processing from main().

13 years ago * src/su.c: Close the password databases together with syslog.
nekral-guest [Mon, 13 Jun 2011 18:27:17 +0000 (18:27 +0000)]
* src/su.c: Close the password databases together with syslog.

13 years ago * src/su.c: Merge environment setting blocks after the creation of
nekral-guest [Mon, 13 Jun 2011 18:27:12 +0000 (18:27 +0000)]
* src/su.c: Merge environment setting blocks after the creation of
the session.

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.