]> granicus.if.org Git - shadow/log
shadow
12 years ago * src/usermod.c, man/usermod.8.xml: usermod -Z "" removes the
nekral-guest [Mon, 21 Nov 2011 22:02:15 +0000 (22:02 +0000)]
* src/usermod.c, man/usermod.8.xml: usermod -Z "" removes the
SELinux user mapping for the modified user.
* src/useradd.c: Zflg is #defined as user_selinux non empty.

12 years ago * libmisc/copydir.c: Ignore errors to copy ACLs if the operation
nekral-guest [Mon, 21 Nov 2011 19:34:22 +0000 (19:34 +0000)]
* libmisc/copydir.c: Ignore errors to copy ACLs if the operation
is not supported.

12 years ago * src/passwd.c: Add missing cast.
nekral-guest [Sat, 19 Nov 2011 22:00:00 +0000 (22:00 +0000)]
* src/passwd.c: Add missing cast.
* lib/commonio.c: Avoid multiple statements per line.
* lib/commonio.c: Ignore fclose return value when the file was
open read only or was not changed, or if an error is already
reported.

12 years ago * src/chage.c: Cast 3rd date_to_str parameter to a time_t
nekral-guest [Sat, 19 Nov 2011 21:56:10 +0000 (21:56 +0000)]
* src/chage.c: Cast 3rd date_to_str parameter to a time_t

12 years ago * lib/selinux.c: vasprintf requires _GNU_SOURCE to be defined
nekral-guest [Sat, 19 Nov 2011 21:55:00 +0000 (21:55 +0000)]
* lib/selinux.c: vasprintf requires _GNU_SOURCE to be defined
before including stdio.h.

12 years ago * libmisc/root_flag.c, src/gpasswd.c, src/chsh.c: Add splint
nekral-guest [Sat, 19 Nov 2011 21:51:52 +0000 (21:51 +0000)]
* libmisc/root_flag.c, src/gpasswd.c, src/chsh.c: Add splint
annotations.
* src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c:
Ignore return value of spw_rewind, pw_rewind, sgr_rewind, and
gr_rewind.
* lib/commonio.h: Both head and tail cannot be owned. Set tail as
dependent.
* src/expiry.c: Ignore return value of expire ().
* src/expiry.c: The catch_signals function does not use its sig
parameter.
* src/userdel.c: Last audit_logger parameter is a
shadow_audit_result, use SHADOW_AUDIT_FAILURE instead of 0.

12 years ago * src/faillog.c: The fail_max field is a short, use a short also
nekral-guest [Sat, 19 Nov 2011 21:44:34 +0000 (21:44 +0000)]
* src/faillog.c: The fail_max field is a short, use a short also
for the max argument of setmax / setmax_one.
* src/faillog.c: Fail with an error message when faillog fails to
write to the faillog database.

12 years ago * man/gpasswd.1.xml: Document the difference between the -r and -R
nekral-guest [Sat, 19 Nov 2011 14:34:59 +0000 (14:34 +0000)]
* man/gpasswd.1.xml: Document the difference between the -r and -R
options.

12 years ago * man/useradd.8.xml, man/groupadd.8.xml, man/usermod.8.xml,
nekral-guest [Sat, 19 Nov 2011 14:33:53 +0000 (14:33 +0000)]
* man/useradd.8.xml, man/groupadd.8.xml, man/usermod.8.xml,
man/groupmod.8.xml: Avoid hardcoded values, and reference instead
the configuration options (e.g. UID_MIN)
* man/groupmod.8.xml, man/usermod.8.xml: Add missing reference to
login.defs
* man/login.defs.d/UID_MAX.xml, man/login.defs.d/SYS_UID_MAX.xml,
man/login.defs.d/GID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
Document the default values.

12 years agoIgnore the generated POTFILES file.
nekral-guest [Sat, 19 Nov 2011 14:29:20 +0000 (14:29 +0000)]
Ignore the generated POTFILES file.

12 years ago * src/gpasswd.c: Change of group password enforces gshadow
nekral-guest [Sat, 19 Nov 2011 14:27:48 +0000 (14:27 +0000)]
* src/gpasswd.c: Change of group password enforces gshadow
password. Set /etc/group password to "x".

12 years agoFix typos.
nekral-guest [Sat, 19 Nov 2011 14:20:52 +0000 (14:20 +0000)]
Fix typos.

12 years agoAdd missing NEWS documentation.
nekral-guest [Thu, 17 Nov 2011 21:52:49 +0000 (21:52 +0000)]
Add missing NEWS documentation.
* NEWS, README, src/useradd.c, src/usermod.c, src/userdel.c,
configure.in: Use libsemanage instead of semanage.

12 years ago * NEWS, src/userdel.c, man/userdel.8.xml: Add option -Z/--selinux-user.
nekral-guest [Thu, 17 Nov 2011 21:51:07 +0000 (21:51 +0000)]
* NEWS, src/userdel.c, man/userdel.8.xml: Add option -Z/--selinux-user.
* libmisc/system.c, lib/prototypes.h, libmisc/Makefile.am: Removed
safe_system().
* lib/selinux.c, po/POTFILES.in, lib/prototypes.h,
lib/Makefile.am: Added helper functions for semanage.
* README, src/useradd.c, src/usermod.c, src/userdel.c,
configure.in: Use libsemanage instead of semanage.

12 years agoRe-indent.
nekral-guest [Thu, 17 Nov 2011 21:32:26 +0000 (21:32 +0000)]
Re-indent.

12 years ago2011-11-16 Peter Vrabec <pvrabec@redhat.com>
nekral-guest [Wed, 16 Nov 2011 21:17:43 +0000 (21:17 +0000)]
2011-11-16  Peter Vrabec  <pvrabec@redhat.com>

* src/Makefile.am: useradd may need the LIBATTR library.

12 years ago2011-11-16 Peter Vrabec <pvrabec@redhat.com>
nekral-guest [Wed, 16 Nov 2011 21:00:43 +0000 (21:00 +0000)]
2011-11-16  Peter Vrabec  <pvrabec@redhat.com>

* libmisc/copydir.c: Ignore perm_copy_file() errors with errno set
to ENOTSUP.

12 years ago * libmisc/root_flag.c: Add missing #include <stdio.h>
nekral-guest [Wed, 16 Nov 2011 19:34:39 +0000 (19:34 +0000)]
* libmisc/root_flag.c: Add missing #include <stdio.h>

12 years ago * src/useradd.c: Compil fix when SHADOWGRP is not enabled.
nekral-guest [Wed, 16 Nov 2011 19:33:51 +0000 (19:33 +0000)]
* src/useradd.c: Compil fix when SHADOWGRP is not enabled.

12 years agoUnfuzzy.
nekral-guest [Mon, 14 Nov 2011 23:37:31 +0000 (23:37 +0000)]
Unfuzzy.

12 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Sun, 13 Nov 2011 18:21:43 +0000 (18:21 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

12 years agoIgnore generated file generate_mans.deps
nekral-guest [Sun, 13 Nov 2011 17:42:05 +0000 (17:42 +0000)]
Ignore generated file generate_mans.deps

12 years ago * src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
nekral-guest [Sun, 13 Nov 2011 16:24:57 +0000 (16:24 +0000)]
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/newusers.c, src/useradd.c, src/userdel.c,
src/usermod.c: Provide the PAM error
message instead of our own, and log error to syslog.
* src/groupmems.c: Exit with exit rather than fail_exit in usage().
* src/newusers.c: Check the number of arguments.
* src/newusers.c: Do not create the home directory when it is not
changed.
* src/useradd.c: Set the group password to "!" rather "x" if there
are no gshadow file.

12 years agoFix cut&paste issue from yesterday.
nekral-guest [Sun, 13 Nov 2011 16:24:49 +0000 (16:24 +0000)]
Fix cut&paste issue from yesterday.

12 years ago * src/pwck.c: Removed pw_opened.
nekral-guest [Sun, 13 Nov 2011 16:24:39 +0000 (16:24 +0000)]
* src/pwck.c: Removed pw_opened.
* src/pwck.c: optind cannot be greater than argc.
* src/pwck.c: If spw_opened, then is_shadow is implicitly set.
* src/pwck.c: Do not report passwd entry without x password and a
shadow entry in --quiet mode (no interaction with the caller)
* src/pwck.c: Do not check if the last password change is in the
future if the time is set to 0.

12 years ago * libmisc/root_flag.c: Drop privileges before changing root. The
nekral-guest [Fri, 11 Nov 2011 12:09:58 +0000 (12:09 +0000)]
* libmisc/root_flag.c: Drop privileges before changing root. The
--root option should not be used by regular users for suid utils.
* libmisc/root_flag.c: Improve error messages.

12 years ago * src/pwck.c: Compile fix for TCB.
nekral-guest [Fri, 11 Nov 2011 12:00:05 +0000 (12:00 +0000)]
* src/pwck.c: Compile fix for TCB.

12 years ago * libmisc/copydir.c: Avoid conflict with glibc. Rename error to
nekral-guest [Fri, 11 Nov 2011 11:59:21 +0000 (11:59 +0000)]
* libmisc/copydir.c: Avoid conflict with glibc. Rename error to
error_acl.

12 years ago * man/newusers.8.xml: Document the optional file argument.
nekral-guest [Fri, 11 Nov 2011 11:35:56 +0000 (11:35 +0000)]
* man/newusers.8.xml: Document the optional file argument.
* man/newusers.8.xml: Fix the documentation of the inputs' format.

13 years ago * man/groupmod.8.xml: Document that the primary group of users may
nekral-guest [Sun, 6 Nov 2011 19:01:54 +0000 (19:01 +0000)]
* man/groupmod.8.xml: Document that the primary group of users may
be changed by groupmod -g.

13 years ago * NEWS, src/newusers.c, man/newusers.8.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:40:22 +0000 (18:40 +0000)]
* NEWS, src/newusers.c, man/newusers.8.xml: Add --root option.

13 years ago * src/vipw.c: Remove unused variable a.
nekral-guest [Sun, 6 Nov 2011 18:40:17 +0000 (18:40 +0000)]
* src/vipw.c: Remove unused variable a.

13 years ago * man/generate_mans.mak: The xml-config files do not depend on the
nekral-guest [Sun, 6 Nov 2011 18:40:11 +0000 (18:40 +0000)]
* man/generate_mans.mak: The xml-config files do not depend on the
Makefile.

13 years agoRe-indent.
nekral-guest [Sun, 6 Nov 2011 18:40:06 +0000 (18:40 +0000)]
Re-indent.

13 years ago * src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
nekral-guest [Sun, 6 Nov 2011 18:39:59 +0000 (18:39 +0000)]
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
src/faillog.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
src/groupmems.c, src/groupmod.c, src/grpconv.c, src/grpunconv.c,
src/lastlog.c, src/newusers.c, src/passwd.c, src/pwconv.c,
src/pwunconv.c, src/su.c, src/useradd.c, src/userdel.c,
src/usermod.c, src/vipw.c: Align and sort options.

13 years ago * NEWS, src/pwck.c, man/pwck.8.xm, src/grpck.c, man/grpck.8.xml:
nekral-guest [Sun, 6 Nov 2011 18:39:53 +0000 (18:39 +0000)]
* NEWS, src/pwck.c, man/pwck.8.xm, src/grpck.c, man/grpck.8.xml:
Add --root option.

13 years ago * man/limits.5.xml, libmisc/limits.c: Sort limit identifiers.
nekral-guest [Sun, 6 Nov 2011 18:39:47 +0000 (18:39 +0000)]
* man/limits.5.xml, libmisc/limits.c: Sort limit identifiers.
* libmisc/limits.c: Fix support for the K limit identifier.
* libmisc/limits.c: Add missing default limit for L and U.

13 years agoRe-indent.
nekral-guest [Sun, 6 Nov 2011 18:39:42 +0000 (18:39 +0000)]
Re-indent.

13 years ago * src/pwck.c, man/pwck.8.xml: Add support for long options.
nekral-guest [Sun, 6 Nov 2011 18:39:36 +0000 (18:39 +0000)]
* src/pwck.c, man/pwck.8.xml: Add support for long options.
* src/pwck.c, man/pwck.8.xml: Add -h/--help option
* src/grpck.c, man/grpck.8.xml: Add support for long options.
* src/grpck.c, man/grpck.8.xml: Add -h/--help option

13 years ago * src/expiry.c, man/expiry.1.xml: Add support for long options.
nekral-guest [Sun, 6 Nov 2011 18:39:30 +0000 (18:39 +0000)]
* src/expiry.c, man/expiry.1.xml: Add support for long options.
* src/expiry.c, man/expiry.1.xml: Add -h/--help option

13 years ago * NEWS, src/chfn.c, man/chfn.1.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:39:24 +0000 (18:39 +0000)]
* NEWS, src/chfn.c, man/chfn.1.xml: Add --root option.

13 years ago * src/chfn.c, man/chfn.1.xml: Add support for long options.
nekral-guest [Sun, 6 Nov 2011 18:39:19 +0000 (18:39 +0000)]
* src/chfn.c, man/chfn.1.xml: Add support for long options.
* src/chfn.c, man/chfn.1.xml: Add -u/--help option

13 years ago * NEWS, src/vipw.c, man/vipw.8.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:39:09 +0000 (18:39 +0000)]
* NEWS, src/vipw.c, man/vipw.8.xml: Add --root option.

13 years ago * NEWS, src/faillog.c, man/faillog.8.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:39:03 +0000 (18:39 +0000)]
* NEWS, src/faillog.c, man/faillog.8.xml: Add --root option.
* NEWS, src/lastlog.c, man/lastlog.8.xml: Likewise.
* src/faillog.c: Add Prog variable, and prefix error messages with
Prog rather than "faillog".
* src/lastlog.c: Likewise.
* src/lastlog.c: Split usage in smaller messages.

13 years ago * NEWS, src/chage.c, man/chage.1.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:38:57 +0000 (18:38 +0000)]
* NEWS, src/chage.c, man/chage.1.xml: Add --root option. Open
audit and syslog after the potential chroot. chage's usage split
in smaller messages.

13 years ago * src/login.c: re-indent.
nekral-guest [Sun, 6 Nov 2011 18:38:51 +0000 (18:38 +0000)]
* src/login.c: re-indent.
* src/login.c: Fix support for sub-logins.

13 years ago * src/faillog.c, src/chage.c, src/newusers.c, src/su.c: The getopt
nekral-guest [Sun, 6 Nov 2011 18:38:45 +0000 (18:38 +0000)]
* src/faillog.c, src/chage.c, src/newusers.c, src/su.c: The getopt
index of long options is not used.

13 years ago * NEWS, src/gpasswd.c, man/gpasswd.1.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:38:39 +0000 (18:38 +0000)]
* NEWS, src/gpasswd.c, man/gpasswd.1.xml: Add --root option.
* src/gpasswd.c: The getopt index of long options is not used.

13 years ago * NEWS, src/chsh.c, man/chsh.1.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:38:32 +0000 (18:38 +0000)]
* NEWS, src/chsh.c, man/chsh.1.xml: Add --root option.
chsh's usage split in smaller messages.
* src/chsh.c: The getopt index of long options is not used.

13 years ago * NEWS, src/groupmems.c, man/groupmems.8.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:38:26 +0000 (18:38 +0000)]
* NEWS, src/groupmems.c, man/groupmems.8.xml: Add --root option.
Open syslog after the potential chroot.
* src/groupmems.c: The getopt index of long options is not used.

13 years agosort per util.
nekral-guest [Sun, 6 Nov 2011 18:38:21 +0000 (18:38 +0000)]
sort per util.

13 years ago * NEWS, src/passwd.c, man/passwd.1.xml: Add --root option.
nekral-guest [Sun, 6 Nov 2011 18:38:16 +0000 (18:38 +0000)]
* NEWS, src/passwd.c, man/passwd.1.xml: Add --root option.
passwd's usage split in smaller messages.
* src/passwd.c: Call sanitize_env() before setting the locales.

13 years ago * NEWS, src/chpasswd.c, man/chpasswd.8.xml, src/chgpasswd.c,
nekral-guest [Sun, 6 Nov 2011 18:38:10 +0000 (18:38 +0000)]
* NEWS, src/chpasswd.c, man/chpasswd.8.xml, src/chgpasswd.c,
man/chgpasswd.8.xml: Add --root option.
* src/chpasswd.c, src/chgpasswd.c: The getopt index of long
options is not used.

13 years ago * NEWS, src/pwconv.c, src/pwunconv.c, src/grpconv.c,
nekral-guest [Sun, 6 Nov 2011 18:38:04 +0000 (18:38 +0000)]
* NEWS, src/pwconv.c, src/pwunconv.c, src/grpconv.c,
src/grpunconv.c, man/pwconv.8.xml: Add --root option.
* src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c:
Add --help option.
* src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c:
Add process_flags() and usage().

13 years ago * src/groupdel.c: Add process_flags().
nekral-guest [Sun, 6 Nov 2011 18:37:57 +0000 (18:37 +0000)]
* src/groupdel.c: Add process_flags().
* src/groupdel.c, man/groupdel.8.xml: Add --help option.
* NEWS, src/groupdel.c, man/groupdel.8.xml: Add --root option. Open
audit and syslog after the potential chroot.
* src/groupdel.c: Check atexit failures.

13 years ago * NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:37:51 +0000 (18:37 +0000)]
* NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open
audit and syslog after the potential chroot.
* src/groupmod.c: The index of long options is not used.

13 years ago * NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:37:45 +0000 (18:37 +0000)]
* NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open
audit after the potential chroot.
* src/groupadd.c: Check atexit failures.
* src/groupadd.c: Return E_SUCCESS instead of exit'ing at the end
of main().

13 years ago * NEWS, src/usermod.c, man/usermod.8.xml: Add --root option. Open
nekral-guest [Sun, 6 Nov 2011 18:37:39 +0000 (18:37 +0000)]
* NEWS, src/usermod.c, man/usermod.8.xml: Add --root option. Open
audit and syslog after the potential chroot. userdel's usage split
in smaller messages.

13 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.

13 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.

13 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.

13 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).

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.