]> granicus.if.org Git - shadow/log
shadow
16 years ago * lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
nekral-guest [Sat, 30 Aug 2008 18:32:19 +0000 (18:32 +0000)]
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
parenthesis.
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Avoid assignments
in comparisons.

16 years ago * libmisc/mail.c: Added brackets and parenthesis.
nekral-guest [Sat, 30 Aug 2008 18:31:56 +0000 (18:31 +0000)]
* libmisc/mail.c: Added brackets and parenthesis.
* libmisc/mail.c: Avoid assignments in comparisons.

16 years agoAdded missing changes from last commit.
nekral-guest [Sat, 30 Aug 2008 18:31:35 +0000 (18:31 +0000)]
Added missing changes from last commit.

16 years ago * configure.in: Check if the stat structure has a st_atim or
nekral-guest [Sat, 30 Aug 2008 18:31:21 +0000 (18:31 +0000)]
* configure.in: Check if the stat structure has a st_atim or
st_atimensec field.
* libmisc/copydir.c: Conditionally use the stat's st_atim and
st_atimensec fields.

16 years ago * lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
nekral-guest [Sat, 30 Aug 2008 18:30:58 +0000 (18:30 +0000)]
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
for the definition of uid_t and gid_t.
* lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient
here.

16 years ago * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to
nekral-guest [Sat, 30 Aug 2008 18:30:36 +0000 (18:30 +0000)]
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to
support systems without nscd.

16 years agoAdded missing include file (assert.h).
nekral-guest [Sat, 30 Aug 2008 18:30:15 +0000 (18:30 +0000)]
Added missing include file (assert.h).

16 years ago * NEWS: Added support for uclibc.
nekral-guest [Sat, 30 Aug 2008 18:29:55 +0000 (18:29 +0000)]
* NEWS: Added support for uclibc.
* configure.in, libmisc/copydir.c: futimes() and lutimes() are not
standard. Check if they are implemented before using them. Do not
set the time of links if lutimes() does not exist, and use
utimes() as a replacement for futimes().

16 years ago * src/groupmems.c: Handle the options alphabetically.
nekral-guest [Sat, 30 Aug 2008 18:29:31 +0000 (18:29 +0000)]
* src/groupmems.c: Handle the options alphabetically.

16 years ago * src/groupmems.c: When removing an user, check if deluser is on
nekral-guest [Sat, 30 Aug 2008 18:29:08 +0000 (18:29 +0000)]
* src/groupmems.c: When removing an user, check if deluser is on
the list, not adduser. This fixes a segmentation fault for every
call of groupmems -d.
* libmisc/list.c: Add assertions to help identifying these issues.
* libmisc/list.c: Avoid implicit conversion of pointers to
booleans.

16 years ago * NEWS, src/groupmems.c: Use the "groupmems" PAM service name
nekral-guest [Sat, 30 Aug 2008 18:28:45 +0000 (18:28 +0000)]
* NEWS, src/groupmems.c: Use the "groupmems" PAM service name
instead of "groupmod".

16 years ago * src/chfn.c: Merge some translated messages.
nekral-guest [Sat, 30 Aug 2008 18:28:24 +0000 (18:28 +0000)]
* src/chfn.c: Merge some translated messages.
* src/groupmems.c, src/groupadd.c, src/gpasswd.c, src/chsh.c,
src/chfn.c: Harmonize *_update() failure messages.
* src/groupmems.c: Harmonize gr_close() failure messages.
* src/newgrp.c: Harmonize "unknown GID" messages.
* src/newusers.c: Move the pwd declaration to a inner block scope.

16 years ago * src/useradd.c: Harmonize some error messages.
nekral-guest [Sat, 30 Aug 2008 18:27:59 +0000 (18:27 +0000)]
* src/useradd.c: Harmonize some error messages.
* src/userdel.c: Add log to syslog when the mail file could not be
removed.
* src/userdel.c: Give more context an error message (merge with
perror()).
* src/usermod.c: Harmonize some error messages.

16 years ago * src/groupmems.c: Check the return value of gr_update().
nekral-guest [Sat, 30 Aug 2008 18:27:34 +0000 (18:27 +0000)]
* src/groupmems.c: Check the return value of gr_update().
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/passwd.c, src/pwck.c, src/pwconv.c, src/pwunconv.c,
src/useradd.c, src/userdel.c, src/usermod.c: Harmonize the error
message sent to stderr in case of *_update () failure.
* src/chage.c, src/chsh.c, src/groupadd.c, src/passwd.c: Do not
log to syslog when pw_update() or spw_update() fail.
* src/newusers.c: Do not log specific error message to stderr when
sgr_update() fails.
* src/pwconv.c: Remove duplicated definition of Prog.

16 years ago * src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
nekral-guest [Sat, 30 Aug 2008 18:27:07 +0000 (18:27 +0000)]
* src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
src/newgrp.c, src/passwd.c, src/su.c: Use the same stderr and
syslog warnings when the username cannot be determined.
* src/newgrp.c: Reuse the same stderr message for groups which do
not exist in the system.

16 years ago * src/usermod.c: Log errors while *_close to syslog.
nekral-guest [Fri, 22 Aug 2008 02:34:04 +0000 (02:34 +0000)]
* src/usermod.c: Log errors while *_close to syslog.
* src/usermod.c: Added missing }

16 years ago * src/grpconv.c: Use Basename for the definition of Prog. Prog
nekral-guest [Fri, 22 Aug 2008 02:33:08 +0000 (02:33 +0000)]
* src/grpconv.c: Use Basename for the definition of Prog. Prog
needs a file visibility.
* src/grpunconv.c: Likewise.

16 years agoFix typos.
nekral-guest [Fri, 22 Aug 2008 02:31:55 +0000 (02:31 +0000)]
Fix typos.

16 years agoFix a typo (sgr_dbmane -> sgr_dbname)
nekral-guest [Fri, 22 Aug 2008 02:31:15 +0000 (02:31 +0000)]
Fix a typo (sgr_dbmane -> sgr_dbname)

16 years ago * src/chfn.c: Do not exit on pw_unlock failures.
nekral-guest [Fri, 22 Aug 2008 02:30:33 +0000 (02:30 +0000)]
* src/chfn.c: Do not exit on pw_unlock failures.
* src/grpconv.c, src/grpunconv.c, src/pwconv.c, src/pwunconv.c,
src/vipw.c: Open syslog with the right identification name.
* src/vipw.c: Log unlock errors to syslog.
* src/vipw.c: Log edits to syslog.
* src/chage.c, src/chfn.c, src/chsh.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmod.c, src/grpconv.c,
src/grpunconv.c, src/passwd.c, src/pwck.c, src/pwunconv.c,
src/useradd.c, src/usermod.c: Harmonize the syslog levels. Failure
to close or unlock are errors. Failure to open files are warnings.

16 years ago * src/newusers.c: Open syslog with the right identification name.
nekral-guest [Fri, 22 Aug 2008 02:29:31 +0000 (02:29 +0000)]
* src/newusers.c: Open syslog with the right identification name.
* src/newusers.c: Mark the files as locked only if they are really
locked (i.e. if shadow is not enabled, the files are not locked).

16 years ago * NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
nekral-guest [Fri, 22 Aug 2008 02:28:15 +0000 (02:28 +0000)]
* NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
support for long options --add (-a), --delete (-d),
--remove-password (-r), --restrict (-R), --administrators (-A),
and --members (-M)
* man/gpasswd.1.xml: Document the new long options.
* src/gpasswd.c: The sgrp structure is only used if SHADOWGRP is
defined.

16 years agoRemove done items.
nekral-guest [Fri, 22 Aug 2008 02:27:26 +0000 (02:27 +0000)]
Remove done items.

16 years ago * src/grpck.c: Added function fail_exit(). Check failure to unlock
nekral-guest [Fri, 22 Aug 2008 02:26:46 +0000 (02:26 +0000)]
* src/grpck.c: Added function fail_exit(). Check failure to unlock
files. Report errors to stderr and syslog, but continue.
* src/grpconv.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.

16 years ago * src/passwd.c: Check failure to unlock files. Report errors to
nekral-guest [Fri, 22 Aug 2008 02:24:29 +0000 (02:24 +0000)]
* src/passwd.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.

16 years ago * src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
nekral-guest [Fri, 22 Aug 2008 02:22:34 +0000 (02:22 +0000)]
* src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c,
src/grpconv.c, src/grpunconv.c, src/newusers.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c: Harmonize the name
of the variables keeping the lock status, to match the shadow
library prefixes.

16 years ago * src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
nekral-guest [Fri, 22 Aug 2008 02:20:53 +0000 (02:20 +0000)]
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c: In
case of a lock failure, indicate to the user that she can try
again later. Do not log to syslog.

16 years agoSort the NEWS entry alphabetically (per program name).
nekral-guest [Fri, 22 Aug 2008 02:18:48 +0000 (02:18 +0000)]
Sort the NEWS entry alphabetically (per program name).

16 years ago * NEWS, src/passwd.c: For compatibility with other passwd version,
nekral-guest [Fri, 22 Aug 2008 02:16:21 +0000 (02:16 +0000)]
* NEWS, src/passwd.c: For compatibility with other passwd version,
the --lock an --unlock options do not lock or unlock the user
account anymore.  They only lock or unlock the user's password.
* man/passwd.1.xml: Document above change. Document how an account
can be locked and what a password lock means.

16 years ago * man/groupadd.8.xml: Fix the regular expression for group policy.
nekral-guest [Fri, 15 Aug 2008 15:25:53 +0000 (15:25 +0000)]
* man/groupadd.8.xml: Fix the regular expression for group policy.
The final $ character is optional.
* man/groupadd.8.xml: Likewise.
* man/groupadd.8.xml: Indicate the maximum size of usernames.

16 years ago * man/po/pl.po: Fix typo in the Polish translation (see
nekral-guest [Fri, 15 Aug 2008 15:25:23 +0000 (15:25 +0000)]
* man/po/pl.po: Fix typo in the Polish translation (see
http://bugs.debian.org/491460)

16 years ago * man/pl/Makefile.am: Do not build the Polish translation of
nekral-guest [Wed, 13 Aug 2008 06:55:55 +0000 (06:55 +0000)]
* man/pl/Makefile.am: Do not build the Polish translation of
login.1 and su.1 (not enough translated). See
http://bugs.debian.org/491460

16 years ago * man/shadow.5.xml: Fix typo. The password must be changed before
nekral-guest [Wed, 13 Aug 2008 06:55:37 +0000 (06:55 +0000)]
* man/shadow.5.xml: Fix typo. The password must be changed before
the maximum number of days, not after.

16 years agoUpdated TODO file.
nekral-guest [Sat, 9 Aug 2008 23:34:04 +0000 (23:34 +0000)]
Updated TODO file.

Added entries:
  * all: report nscd_flush_cache failures?
  * groupmems: Add support for gshadow
Removed entries:
  * groupmems: check reason for isgroup (function already removed)

16 years ago * src/groupmems.c: Harmonize the unlock failure messages.
nekral-guest [Sat, 9 Aug 2008 23:33:46 +0000 (23:33 +0000)]
* src/groupmems.c: Harmonize the unlock failure messages.

16 years ago * src/pwck.c: Added fail_exit().
nekral-guest [Sat, 9 Aug 2008 23:33:26 +0000 (23:33 +0000)]
* src/pwck.c: Added fail_exit().
* src/pwck.c: Report failure to unlock files to stderr and
syslog.
* src/pwck.c: Report failure to sort to stderr, and exit with
E_CANTSORT.
* man/pwck.8.xml: Document return code 6 (E_CANTSORT).

16 years ago * src/vipw.c: Report failures to remove files to stderr.
nekral-guest [Sat, 9 Aug 2008 23:31:36 +0000 (23:31 +0000)]
* src/vipw.c: Report failures to remove files to stderr.
* src/vipw.c: Report failures to unlock files to stderr.

16 years ago * NEWS, src/groupmems.c: Added syslog support.
nekral-guest [Sat, 9 Aug 2008 23:28:30 +0000 (23:28 +0000)]
* NEWS, src/groupmems.c: Added syslog support.
* src/groupmems.c: members() renamed display_members() to
avoid name clash with its members argument.
* src/groupmems.c: Report failure to unlock to syslog.
* src/groupmems.c: Harmonize error messages.
* src/groupmems.c: Report failures to write the new group file to
syslog (gr_close() failure).
* src/groupmems.c: Don't use fail_exit for non-failure exit.

16 years ago * src/chsh.c: Added fail_exit().
nekral-guest [Sat, 9 Aug 2008 23:27:50 +0000 (23:27 +0000)]
* src/chsh.c: Added fail_exit().
* src/chsh.c: Use fail_exit() instead of exit(), this avoid
calling closelog() every times.
* src/chsh.c: Ignore the return value or pam_end().
* src/chsh.c: Simplify the PAM error handling.
* src/chsh.c: Report failure to unlock files to stderr and
syslog.

16 years agoInclude missing exitcodes.h
nekral-guest [Sat, 9 Aug 2008 23:27:05 +0000 (23:27 +0000)]
Include missing exitcodes.h

16 years agoImprove commonalities between chgpasswd and chpasswd.
nekral-guest [Sat, 9 Aug 2008 23:25:49 +0000 (23:25 +0000)]
Improve commonalities between chgpasswd and chpasswd.

16 years ago * src/chpasswd.c: Added fail_exit().
nekral-guest [Sat, 9 Aug 2008 23:25:18 +0000 (23:25 +0000)]
* src/chpasswd.c: Added fail_exit().
* src/chpasswd.c: Added support for syslog.
* src/chpasswd.c: Report failure to unlock files to stderr and
syslog.
* src/chpasswd.c: Simplify the PAM error handling.
* src/chpasswd.c: Report failure during *_close() to syslog.
* src/chpasswd.c: Ignore the return value or pam_end().

16 years agoAdded missing Prog.
nekral-guest [Sat, 9 Aug 2008 23:24:15 +0000 (23:24 +0000)]
Added missing Prog.

16 years agoAdded missing Prog.
nekral-guest [Sat, 9 Aug 2008 23:23:44 +0000 (23:23 +0000)]
Added missing Prog.

16 years agoFix typo: missing O_RDWR parameter to *_open().
nekral-guest [Sat, 9 Aug 2008 23:23:12 +0000 (23:23 +0000)]
Fix typo: missing O_RDWR parameter to *_open().

16 years ago * src/chgpasswd.c: Added fail_exit().
nekral-guest [Sat, 9 Aug 2008 23:22:00 +0000 (23:22 +0000)]
* src/chgpasswd.c: Added fail_exit().
* src/chgpasswd.c: Added support for syslog.
* src/chgpasswd.c: Report failure to unlock files to stderr and
syslog.
* src/chgpasswd.c: Simplify the PAM error handling.
* src/chgpasswd.c: Report failure during *_close() to syslog.
* src/chgpasswd.c: Ignore the return value or pam_end().

16 years ago * src/userdel.c: Report failure to remove entries from group or
nekral-guest [Thu, 7 Aug 2008 08:44:06 +0000 (08:44 +0000)]
* src/userdel.c: Report failure to remove entries from group or
gshadow to stderr.
* src/userdel.c: Fail in case of failure during the write of a
user or group database. Report errors to syslog.
* src/userdel.c: Do not unlock non locked files.
* src/userdel.c: Report failure to unlock the passwd or shadow
file to stderr and syslog.

16 years ago * src/pwunconv.c: Report failure to unlock the passwd or shadow
nekral-guest [Thu, 7 Aug 2008 08:03:55 +0000 (08:03 +0000)]
* src/pwunconv.c:  Report failure to unlock the passwd or shadow
file to stderr and syslog.

16 years ago * src/usermod.c: Report failure to unlock the passwd or shadow
nekral-guest [Thu, 7 Aug 2008 08:03:38 +0000 (08:03 +0000)]
* src/usermod.c: Report failure to unlock the passwd or shadow
file to stderr and syslog.

16 years ago * src/newusers.c: Report failure to unlock the passwd or shadow
nekral-guest [Thu, 7 Aug 2008 08:03:13 +0000 (08:03 +0000)]
* src/newusers.c: Report failure to unlock the passwd or shadow
file to stderr and syslog.
* src/newusers.c: In case of error when files are open or closed,
indicate the failing file.
* src/newusers.c: Do not try to unlock the files manually since
this is done in fail_exit.

16 years ago * src/chage.c: Report failure to unlock the passwd or shadow file
nekral-guest [Thu, 7 Aug 2008 08:02:52 +0000 (08:02 +0000)]
* src/chage.c: Report failure to unlock the passwd or shadow file
to stderr and syslog.

16 years ago * src/pwconv.c: Report failure to unlock the passwd or shadow file
nekral-guest [Thu, 7 Aug 2008 08:02:34 +0000 (08:02 +0000)]
* src/pwconv.c: Report failure to unlock the passwd or shadow file
to stderr and syslog.
* src/pwconv.c: Report failure to chmod the backup file.

16 years ago * src/grpunconv.c: Report failure to unlock the group or gshadow
nekral-guest [Thu, 7 Aug 2008 08:02:13 +0000 (08:02 +0000)]
* src/grpunconv.c: Report failure to unlock the group or gshadow
files to stderr and syslog.

16 years ago * src/chfn.c: Added fail_exit(). Check if the passwd file is
nekral-guest [Thu, 7 Aug 2008 08:01:44 +0000 (08:01 +0000)]
* src/chfn.c: Added fail_exit(). Check if the passwd file is
locked. Report failures to unlock to stderr and syslog.
* src/chfn.c: Is case of failure, use fail_exit() rather than
exit().
* src/chfn.c: Ignore the return value of pam_end().

16 years ago * lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
nekral-guest [Wed, 6 Aug 2008 15:57:31 +0000 (15:57 +0000)]
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
Added *_dbname() functions to retrieve the name of the databases.
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
*_name() functions renamed *setname().
* src/grpck.c, src/pwck.c: Likewise.
* lib/groupio.h, lib/pwio.h, lib/sgroupio.h, lib/shadowio.h: Added
the name of the arguments to the prototypes.
* src/chage, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c:
Harmonize the erro & syslog messages in case of failure of the
*_lock(), *_open(), *_close(), *_unlock(), *_remove() functions.
* src/chgpasswd.c, src/chpasswd.c, src/usermod.c: Avoid
capitalized messages.
* src/chpasswd.c, src/useradd.c, src/usermod.c: Harmonize messages
in case of inexistent entries.
* src/usermod.c:  Harmonize messages in case of already existing
entries.
* src/newusers.c, src/useradd.c: Simplify PAM error handling.
* src/useradd.c: Report failures to unlock files (stderr, syslog,
and audit). But do not fail (continue).
* src/useradd.c (open_files): Do not report to syslog & audit
failures to lock or open the databases. This might be harmless,
and the logs were not already informed that a change was
requested.
* src/usermod.c: It's not the account which is unlocked, but its
password.

16 years ago * src/groupadd.c: Only call gr_unlock() and sgr_unlock() in the
nekral-guest [Wed, 6 Aug 2008 15:56:51 +0000 (15:56 +0000)]
* src/groupadd.c: Only call gr_unlock() and sgr_unlock() in the
group or gshadow files were previously locked.
* src/groupadd.c: Make sure failures are reported to syslog/audit
after the change is mentioned.
* src/groupmod.c: Add logging to syslog & audit on lock/unlock
failures.
* src/groupmod.c: Make sure issues are reported to syslog or audit
after the change is mentioned.
* src/groupdel.c: Only call gr_unlock() and sgr_unlock() in the
group or gshadow files were previously locked.
* src/groupdel.c: Simplify the handling of PAM errors.

16 years ago * Merge two is_shadowgrp blocks.
nekral-guest [Wed, 6 Aug 2008 15:55:57 +0000 (15:55 +0000)]
 * Merge two is_shadowgrp blocks.
 * Indicate that we continue when *_unlock fail

16 years agoRe-indent.
nekral-guest [Wed, 6 Aug 2008 15:55:16 +0000 (15:55 +0000)]
Re-indent.

16 years ago * src/groupdel.c: Add logging to syslog & audit on lock/unlock
nekral-guest [Wed, 6 Aug 2008 15:54:49 +0000 (15:54 +0000)]
* src/groupdel.c: Add logging to syslog & audit on lock/unlock
failures.

16 years ago * src/groupdel.c: Harmonize error & syslog messages.
nekral-guest [Wed, 6 Aug 2008 15:54:16 +0000 (15:54 +0000)]
* src/groupdel.c: Harmonize error & syslog messages.

16 years ago * src/groupmod.c: Harmonize error & syslog messages.
nekral-guest [Wed, 6 Aug 2008 15:53:50 +0000 (15:53 +0000)]
* src/groupmod.c: Harmonize error & syslog messages.

16 years ago * src/groupadd.c: Harmonize error & syslog messages.
nekral-guest [Wed, 6 Aug 2008 15:53:30 +0000 (15:53 +0000)]
* src/groupadd.c: Harmonize error & syslog messages.
* src/groupadd.c: Add logging to syslog in some error cases.

16 years ago * src/gpasswd.c: Warn and log to syslog and audit when group or
nekral-guest [Wed, 6 Aug 2008 15:52:42 +0000 (15:52 +0000)]
* src/gpasswd.c: Warn and log to syslog and audit when group or
gshadow cannot be unlocked, but do not fail.

16 years ago * src/gpasswd.c: Harmonize error & syslog messages.
nekral-guest [Wed, 6 Aug 2008 15:52:21 +0000 (15:52 +0000)]
* src/gpasswd.c: Harmonize error & syslog messages.

16 years ago * src/chfn.c, src/chsh.c, src/groupdel.c, src/groupmems.c,
nekral-guest [Wed, 6 Aug 2008 15:51:52 +0000 (15:51 +0000)]
* src/chfn.c, src/chsh.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/login.c, src/logoutd.c,
src/newgrp.c, src/newusers.c, src/passwd.c, src/pwck.c,
src/suauth.c, src/useradd.c, src/userdel.c, src/usermod.c,
src/vipw.c: Complete the switch from the `' quotation style to ''.
Do it also in SYSLOG messages. Quote some parameters. All this
permits to merge some messages.

16 years agoAdded Lukáš Kuklínek.
nekral-guest [Thu, 31 Jul 2008 16:50:59 +0000 (16:50 +0000)]
Added Lukáš Kuklínek.

16 years ago * src/groupmems.c: Only check if the adduser user exists when an
nekral-guest [Wed, 30 Jul 2008 14:11:09 +0000 (14:11 +0000)]
* src/groupmems.c: Only check if the adduser user exists when an
user is specified with -a.

16 years ago * src/groupmems.c: Fix the groupmems' usage message. The -D option
nekral-guest [Wed, 30 Jul 2008 00:27:55 +0000 (00:27 +0000)]
* src/groupmems.c: Fix the groupmems' usage message. The -D option
is in fact -p.

16 years ago * src/groupmems.c: Replace an if test by an else.
nekral-guest [Sun, 27 Jul 2008 22:30:47 +0000 (22:30 +0000)]
* src/groupmems.c: Replace an if test by an else.

16 years ago * src/groupmems.c: Ignore the return value of fputs().
nekral-guest [Sun, 27 Jul 2008 22:30:39 +0000 (22:30 +0000)]
* src/groupmems.c: Ignore the return value of fputs().

16 years ago * src/groupmems.c (whoami): Make sure usr and grp are not NULL
nekral-guest [Sun, 27 Jul 2008 22:30:31 +0000 (22:30 +0000)]
* src/groupmems.c (whoami): Make sure usr and grp are not NULL
before dereferencing them.

16 years ago * src/groupmems.c: Use xstrdup() rather than strdup().
nekral-guest [Sun, 27 Jul 2008 22:30:22 +0000 (22:30 +0000)]
* src/groupmems.c: Use xstrdup() rather than strdup().

16 years ago * src/groupmems.c: Add parenthesis.
nekral-guest [Sun, 27 Jul 2008 22:30:12 +0000 (22:30 +0000)]
* src/groupmems.c: Add parenthesis.
* src/groupmems.c: Avoid implicit conversion of pointers / chars to
booleans.

16 years ago * NEWS, src/groupmems.c: Allow everybody to list the users of a group.
nekral-guest [Sun, 27 Jul 2008 02:33:37 +0000 (02:33 +0000)]
* NEWS, src/groupmems.c: Allow everybody to list the users of a group.
This information is publicly available in /etc/group.
* NEWS, src/groupmems.c: Open /etc/group read only for the -l option.

16 years ago * man/groupmems.8.xml: Sort options alphabetically.
nekral-guest [Sun, 27 Jul 2008 02:11:32 +0000 (02:11 +0000)]
* man/groupmems.8.xml: Sort options alphabetically.

16 years agoHarmonize error messages and add the prototypes for whoami(), members(), and usage().
nekral-guest [Sun, 27 Jul 2008 01:47:56 +0000 (01:47 +0000)]
Harmonize error messages and add the prototypes for whoami(), members(), and usage().

16 years ago * src/groupmems.c (check_perms): Simplify. Always call pam_end()
nekral-guest [Sun, 27 Jul 2008 01:41:07 +0000 (01:41 +0000)]
* src/groupmems.c (check_perms): Simplify. Always call pam_end()
at the end of the authentication.

16 years ago * src/groupmems.c: Add fail_exit() to remove the group lock file
nekral-guest [Sun, 27 Jul 2008 01:35:08 +0000 (01:35 +0000)]
* src/groupmems.c: Add fail_exit() to remove the group lock file
in case of failure. Replace the calls to exit() by fail_exit().

16 years ago * src/groupmems.c: Reduce the number of checks. Isolate the
nekral-guest [Sun, 27 Jul 2008 01:16:13 +0000 (01:16 +0000)]
* src/groupmems.c: Reduce the number of checks. Isolate the
parameters setting and permissions checking.

16 years ago * src/groupmems.c: Add functions process_flags() and check_perms()
nekral-guest [Sun, 27 Jul 2008 00:59:42 +0000 (00:59 +0000)]
* src/groupmems.c: Add functions process_flags() and check_perms()
from code of main().
* src/groupmems.c: Harmonize the failure message in case of PAM
failure with the other programs.

16 years ago * src/groupmems.c: Remove isgroup(), which always returns TRUE.
nekral-guest [Sun, 27 Jul 2008 00:35:04 +0000 (00:35 +0000)]
* src/groupmems.c: Remove isgroup(), which always returns TRUE.

16 years ago * src/groupmems.c: Reuse the functions from libmisc/list.c to deal
nekral-guest [Sun, 27 Jul 2008 00:21:42 +0000 (00:21 +0000)]
* src/groupmems.c: Reuse the functions from libmisc/list.c to deal
with user lists. addtogroup() was broken when realloc() move the
memory area.
* src/groupmems.c: Report failures with the name of the program.

16 years ago * src/groupmems.c: EXIT_READ_GROUP changed to EXIT_INVALID_GROUP.
nekral-guest [Sun, 27 Jul 2008 00:11:25 +0000 (00:11 +0000)]
* src/groupmems.c: EXIT_READ_GROUP changed to EXIT_INVALID_GROUP.
* src/groupmems.c: EXIT_INVALID_USERNAME changed to EXIT_INVALID_USER.
* src/groupmems.c: Fix typos.

16 years ago * src/groupmems.c: Really use booleans.
nekral-guest [Sat, 26 Jul 2008 16:24:27 +0000 (16:24 +0000)]
* src/groupmems.c: Really use booleans.
* src/groupmems.c: Change isroot() to a macro that returns a
boolean.

16 years ago * lib/defines.h: Make sure the booleans are defined before using
nekral-guest [Sat, 26 Jul 2008 16:13:29 +0000 (16:13 +0000)]
* lib/defines.h: Make sure the booleans are defined before using
them.

16 years ago2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
nekral-guest [Sat, 26 Jul 2008 16:11:49 +0000 (16:11 +0000)]
2008-07-26  Nicolas François  <nicolas.francois@centraliens.net>

* src/groupmems.c: Added Prog global variable to indicate the name
of the program in error messages.

2008-07-22  Lukáš Kuklínek  <lkukline@redhat.com>

* NEWS, src/groupmems.c: Check if the user added to group actually
exist. RedHat bug #455603
* NEWS, src/groupmems.c: Check if the group exists in the group
local database (/etc/group). RedHat bug #456088

16 years ago * lib/prototypes.h: Fix getrange prototype.
nekral-guest [Mon, 21 Jul 2008 22:45:49 +0000 (22:45 +0000)]
* lib/prototypes.h: Fix getrange prototype.

16 years agoRe-indent.
nekral-guest [Mon, 21 Jul 2008 22:45:08 +0000 (22:45 +0000)]
Re-indent.

16 years ago * README, NEWS, configure.in, lib/pam_defs.h, src/login.c: Add
nekral-guest [Mon, 21 Jul 2008 21:14:06 +0000 (21:14 +0000)]
* README, NEWS, configure.in, lib/pam_defs.h, src/login.c: Add
support for OpenPAM.

16 years ago * src/chage.c: Ignore the return value of pam_end() before exiting.
nekral-guest [Fri, 11 Jul 2008 22:31:43 +0000 (22:31 +0000)]
* src/chage.c: Ignore the return value of pam_end() before exiting.
* src/chage.c: Ignore return values of strftime(), snprintf(),
puts(), printf(), and fputs().
* src/chage.c: Check the return value of asctime().

16 years ago * lib/gshadow.c: Avoid assignments in comparison.
nekral-guest [Fri, 11 Jul 2008 22:23:42 +0000 (22:23 +0000)]
* lib/gshadow.c: Avoid assignments in comparison.

16 years agoRe-inject the changes from 4.1.2.1.
nekral-guest [Fri, 11 Jul 2008 22:20:43 +0000 (22:20 +0000)]
Re-inject the changes from 4.1.2.1.

16 years agoFix typo.
nekral-guest [Fri, 11 Jul 2008 22:04:02 +0000 (22:04 +0000)]
Fix typo.

16 years ago * src/usermod.c: Do not call usr_update() if it will have no
nekral-guest [Fri, 11 Jul 2008 21:50:05 +0000 (21:50 +0000)]
* src/usermod.c: Do not call usr_update() if it will have no
effects. This avoid checking if the user exists in the local passwd
file if not necessary, and thus allow to add LDAP users to local
groups. (The user is already checked against the system
configuration with getpwnam()). Thanks to Dan Kopecek.

16 years ago * src/usermod.c: Split update_files() into update_lastlog() and
nekral-guest [Fri, 11 Jul 2008 20:52:44 +0000 (20:52 +0000)]
* src/usermod.c: Split update_files() into update_lastlog() and
update_faillog(). Report errors (but don't fail) if the file
exist, but open(), lseek(), read(), write(), or close() fails.
* src/usermod.c: Add brackets and parenthesis.
* src/usermod.c: Ignore the return value of pam_end() before
exiting.
* src/usermod.c: Ignore the return value of strftime(),
snprintf(), and puts().
* src/usermod.c: Check the return value of gmtime() and asctime(),
and output the raw time_t on failures.

16 years ago * libmisc/setugid.c: Add brackets.
nekral-guest [Fri, 11 Jul 2008 20:23:07 +0000 (20:23 +0000)]
* libmisc/setugid.c: Add brackets.

16 years agoRe-indent.
nekral-guest [Tue, 17 Jun 2008 22:00:36 +0000 (22:00 +0000)]
Re-indent.

16 years ago * libmisc/env.c: Avoid implicit conversion of pointers / chars to
nekral-guest [Tue, 17 Jun 2008 21:58:46 +0000 (21:58 +0000)]
* libmisc/env.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/env.c: Add brackets and parenthesis.
* libmisc/env.c: Ignore the return value of puts() and fputs().
* libmisc/env.c: Avoid multi-statements lines.

16 years agoRe-indent.
nekral-guest [Tue, 17 Jun 2008 21:17:45 +0000 (21:17 +0000)]
Re-indent.

16 years ago * libmisc/utmp.c: Avoid implicit conversion of pointers / chars to
nekral-guest [Tue, 17 Jun 2008 21:13:30 +0000 (21:13 +0000)]
* libmisc/utmp.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/utmp.c: Add brackets and parenthesis.
* libmisc/utmp.c: Exit with the EXIT_FAILURE status code in case
of failure.
* libmisc/utmp.c: Avoid assignments in comparisons.
* lib/prototypes.h, libmisc/utmp.c: Change setutmp()'s prototype
to return an int because pututline() and pututxline() may fail.