nekral-guest [Mon, 9 Jun 2008 18:35:32 +0000 (18:35 +0000)]
* src/login_nopam.c: Do not use the YES and NO macros. Use the
booleans true and false instead. Change the prototypes of
list_match(), user_match(), from_match(), and string_match()
accordingly. Also use booleans internally.
* src/login_nopam.c: Add brackets and parenthesis.
* src/login_nopam.c: Avoid implicit conversion of pointers /
integers / chars to booleans.
* src/login_nopam.c: Avoid assignments in comparisons.
nekral-guest [Mon, 9 Jun 2008 18:23:23 +0000 (18:23 +0000)]
* src/newgrp.c: Use a bool for is_newgrp, notfound, needspasswd,
initflag, and cflag.
* src/newgrp.c: Add brackets and parenthesis.
* src/newgrp.c: Avoid implicit conversion of pointers / integers /
chars to booleans.
* src/newgrp.c: Avoid multi-statements lines.
* src/newgrp.c: Ignore return value of setlocale(),
bindtextdomain(), and textdomain().
* src/newgrp.c: Avoid assignments in comparisons.
nekral-guest [Mon, 9 Jun 2008 18:13:52 +0000 (18:13 +0000)]
* libmisc/list.c: Change is_on_list() prototype to return a bool.
nekral-guest [Mon, 9 Jun 2008 18:13:09 +0000 (18:13 +0000)]
* libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
prototypes to use a bool for their first argument (sys_user /
sys_group).
nekral-guest [Mon, 9 Jun 2008 18:11:20 +0000 (18:11 +0000)]
* libmisc/console.c: Change is_listed() prototype to return a bool.
The default parameter should also be a bool.
* libmisc/console.c: Add brackets and parenthesis.
* libmisc/console.c: Avoid assignments in comparisons.
* libmisc/console.c: Change console() prototype to return a bool.
nekral-guest [Mon, 26 May 2008 09:39:29 +0000 (09:39 +0000)]
* lib/sgetspent.c: Add brackets and parenthesis.
* lib/sgetspent.c: Avoid assignments in comparisons.
* lib/sgetspent.c: Avoid implicit conversion of pointers / chars to booleans.
* lib/sgetspent.c: Avoid multi-statements lines.
nekral-guest [Mon, 26 May 2008 09:22:44 +0000 (09:22 +0000)]
Avoid assignments in comparisons.
Add note about possible bug.
nekral-guest [Mon, 26 May 2008 09:17:17 +0000 (09:17 +0000)]
Do not check twice if fields[2] and fields[3] are not empty.
nekral-guest [Mon, 26 May 2008 09:15:02 +0000 (09:15 +0000)]
* lib/sgetpwent.c: Avoid implicit conversion of pointers / chars to booleans.
* lib/sgetpwent.c: Add brackets and parenthesis.
* lib/sgetpwent.c: Return NULL instead of 0.
nekral-guest [Mon, 26 May 2008 09:12:34 +0000 (09:12 +0000)]
* Avoid implicit conversion of pointers to booleans.
* Add parenthesis.
nekral-guest [Mon, 26 May 2008 08:59:54 +0000 (08:59 +0000)]
* libmisc/getdate.y: abbrev is a bool.
* libmisc/getdate.y: Avoid implicit conversion of pointers / chars / integers to booleans.
nekral-guest [Mon, 26 May 2008 08:56:34 +0000 (08:56 +0000)]
* lib/prototypes.h: Fix prototypes according to earlier changes (usage of the bool type).
* lib/prototypes.h: Add the arguments' name to the prototypes.
nekral-guest [Mon, 26 May 2008 08:53:56 +0000 (08:53 +0000)]
Add protection against multiple inclusions.
nekral-guest [Mon, 26 May 2008 08:52:34 +0000 (08:52 +0000)]
Indicate that defines.h is included for the definition of the "bool" type.
nekral-guest [Mon, 26 May 2008 08:51:45 +0000 (08:51 +0000)]
The changed, isopen, locked, and readonly fields of the db are booleans.
nekral-guest [Mon, 26 May 2008 08:49:44 +0000 (08:49 +0000)]
* lib/pwio.h: Add protection against multiple inclusions.
* lib/pwio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
nekral-guest [Mon, 26 May 2008 08:46:41 +0000 (08:46 +0000)]
* lib/sgroupio.c: Avoid assignments in comparisons.
* lib/sgroupio.c: Add brackets.
* lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans.
* lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
* lib/sgroupio.h: Add protection against multiple inclusions.
nekral-guest [Mon, 26 May 2008 08:45:34 +0000 (08:45 +0000)]
* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
* lib/shadowio.h: Add protection against multiple inclusions.
nekral-guest [Mon, 26 May 2008 08:43:50 +0000 (08:43 +0000)]
* lib/sgroupio.c: Avoid assignments in comparisons.
* lib/sgroupio.c: Add brackets.
* lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans.
* lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
* lib/sgroupio.h: Add protection against multiple inclusions.
nekral-guest [Mon, 26 May 2008 08:40:04 +0000 (08:40 +0000)]
* lib/gshadow.c: nis_used and nis_bound are booleans.
* lib/gshadow.c: Avoid implicit conversion of pointers / integers to booleans.
* lib/gshadow.c: Avoid assignments in comparisons.
* lib/gshadow.c: Add brackets.
nekral-guest [Mon, 26 May 2008 08:35:13 +0000 (08:35 +0000)]
Add protection against multiple inclusion
nekral-guest [Mon, 26 May 2008 08:34:04 +0000 (08:34 +0000)]
The changed, isopen, locked, and readonly fields of the db are booleans.
nekral-guest [Mon, 26 May 2008 08:31:14 +0000 (08:31 +0000)]
* lib/sgetgrent.c: implicit conversion of pointers / chars to booleans.
* lib/sgetgrent.c: Avoid assignments in comparisons.
* lib/sgetgrent.c: Add brackets.
nekral-guest [Mon, 26 May 2008 01:07:13 +0000 (01:07 +0000)]
* lib/encrypt.c: Avoid implicit conversion of pointers to booleans.
* lib/encrypt.c: Add parenthesis.
nekral-guest [Mon, 26 May 2008 01:05:04 +0000 (01:05 +0000)]
* lib/port.c: Avoid implicit conversion of pointers / integers / chars to booleans.
* lib/port.c: Avoid multiple statement on the same line.
* lib/port.c: Add brackets and parenthesis.
* lib/port.c: Avoid assignments in comparisons.
* lib/port.c: Fix typo comparision -> comparison (in comment).
nekral-guest [Mon, 26 May 2008 00:59:42 +0000 (00:59 +0000)]
* lib/fputsx.c: Add brackets.
* lib/fputsx.c: Avoid assignments in comparisons.
* lib/fputsx.c: Avoid implicit conversion of pointers / integers / chars to booleans.
nekral-guest [Mon, 26 May 2008 00:46:25 +0000 (00:46 +0000)]
* lib/commonio.h: commonio_entry.changed, commonio_db.changed, commonio_db.isopen, commonio_db.locked, and commonio_db.readonly are no booleans.
* lib/commonio.h: Include defines.h to get the definition of bool.
* lib/commonio.h: commonio_present returns a bool
* lib/commonio.c: Implement above changes.
* lib/commonio.c: add argument names in prototypes.
* lib/commonio.c: name_is_nis returns a bool.
* lib/commonio.c: nscd_need_reload is a bool.
* lib/commonio.c: Improve types (use size_t / pid_t when needed instead of int).
* lib/commonio.c: Avoid assignments in comparisons.
* lib/commonio.c: Add brackets and parenthesis.
* lib/commonio.c: Avoid implicit conversion of pointers / integers to booleans
* lib/commonio.c: The return values of utime is not checked on purpose.
nekral-guest [Mon, 26 May 2008 00:26:33 +0000 (00:26 +0000)]
checkutmp is implemented twice. I only changed the second one. Now fix the
first one.
nekral-guest [Mon, 26 May 2008 00:14:10 +0000 (00:14 +0000)]
* libmisc/isexpired.c: ARGSUSED is no more needed (shadow is always supported).
* libmisc/isexpired.c: Avoid implicit conversion of pointers to booleans.
* libmisc/isexpired.c: Add brackets and parenthesis.
nekral-guest [Mon, 26 May 2008 00:09:24 +0000 (00:09 +0000)]
* libmisc/sulog.c (sulog): The success argument is a bool.
* libmisc/sulog.c: The return values of fflush is not checked on purpose.
* libmisc/sulog.c: Indicate that some return values should be checked.
nekral-guest [Mon, 26 May 2008 00:04:30 +0000 (00:04 +0000)]
Updated copyright dates.
nekral-guest [Mon, 26 May 2008 00:02:15 +0000 (00:02 +0000)]
* libmisc/ttytype.c: Avoid implicit conversion of pointers / integers to booleans.
* libmisc/ttytype.c: Avoid assignments in comparisons.
* libmisc/ttytype.c: Add brackets and parenthesis.
* libmisc/ttytype.c: The return values of fclose is not checked on purpose.
nekral-guest [Sun, 25 May 2008 23:59:05 +0000 (23:59 +0000)]
* libmisc/mail.c: Avoid implicit conversion of pointers to booleans.
* libmisc/mail.c: Avoid assignments in comparisons.
nekral-guest [Sun, 25 May 2008 23:57:41 +0000 (23:57 +0000)]
* libmisc/loginprompt.c: Avoid implicit conversion of pointers / chars to booleans.
* libmisc/loginprompt.c: Add brackets.
* libmisc/loginprompt.c: Avoid assignments in comparisons.
* libmisc/loginprompt.c: The return values of fclose and fflush are not checked on purpose.
nekral-guest [Sun, 25 May 2008 23:50:03 +0000 (23:50 +0000)]
Avoid implicit conversion of chars to booleans.
nekral-guest [Sun, 25 May 2008 23:45:21 +0000 (23:45 +0000)]
selinux_checked, selinux_enabled, and set_orig are now booleans.
nekral-guest [Sun, 25 May 2008 23:42:39 +0000 (23:42 +0000)]
* libmisc/setugid.c (setup_uid_gid): The is_console argument is now a bool.
* libmisc/setugid.c: Avoid implicit conversion of integers / pointers to booleans.
* libmisc/setugid.c: Add brackets.
nekral-guest [Sun, 25 May 2008 23:39:59 +0000 (23:39 +0000)]
* libmisc/setugid.c (setup_uid_gid): The is_console argument is no a bool.
* libmisc/setugid.c: Avoid implicit conversion of integers / pointers to booleans.
* libmisc/setugid.c: Add brackets.
nekral-guest [Sun, 25 May 2008 23:38:05 +0000 (23:38 +0000)]
* libmisc/pam_pass.c (do_pam_passwd): The silent and
change_expired are no booleans instead of int.
* libmisc/pam_pass.c: The return value of pam_end is not checked
on purpose.
nekral-guest [Sun, 25 May 2008 23:32:41 +0000 (23:32 +0000)]
Updated copyright dates.
nekral-guest [Sun, 25 May 2008 23:31:10 +0000 (23:31 +0000)]
Updated copyright dates.
nekral-guest [Sun, 25 May 2008 23:25:33 +0000 (23:25 +0000)]
* libmisc/getlong.c: Avoid implicit conversion of pointers / chars to booleans.
* libmisc/getlong.c: Add brackets.
nekral-guest [Sun, 25 May 2008 23:22:15 +0000 (23:22 +0000)]
* libmisc/valid.c: Avoid implicit conversion of pointers /chars to booleans.
* libmisc/valid.c: Add brackets.
nekral-guest [Sun, 25 May 2008 23:01:14 +0000 (23:01 +0000)]
* libmisc/yesno.c: yes_or_no returns a bool instead of int.
* libmisc/yesno.c: Avoid implicit conversion of pointers to booleans.
* libmisc/yesno.c: The return value of fflush is not checked on purpose.
nekral-guest [Sun, 25 May 2008 22:54:20 +0000 (22:54 +0000)]
(failcheck): The failed argument is a bool.
nekral-guest [Sun, 25 May 2008 22:51:46 +0000 (22:51 +0000)]
Avoid implicit conversion of integers to booleans.
nekral-guest [Sun, 25 May 2008 22:49:41 +0000 (22:49 +0000)]
* libmisc/rlogin.c: Avoid assignments in comparisons.
* libmisc/rlogin.c: Avoid implicit conversion of integers to booleans.
* libmisc/rlogin.c: Add brackets.
nekral-guest [Sun, 25 May 2008 22:44:44 +0000 (22:44 +0000)]
* libmisc/failure.c (failcheck): The failed argument is a bool.
* libmisc/failure.c (too_many_failures): too_many_failures returns
a bool.
* libmisc/failure.c: Add notes about unchecked return values.
* libmisc/failure.c: Avoid assignments in comparisons.
* libmisc/failure.c: Add brackets.
nekral-guest [Sun, 25 May 2008 22:15:28 +0000 (22:15 +0000)]
* libmisc/myname.c: Avoid assignments in comparisons.
* libmisc/myname.c: Avoid implicit conversion of pointers / chars
to booleans.
* libmisc/myname.c: Add brackets.
nekral-guest [Sun, 25 May 2008 22:14:19 +0000 (22:14 +0000)]
nekral-guest [Sun, 25 May 2008 22:11:12 +0000 (22:11 +0000)]
* libmisc/utmp.c (checkutmp): Change picky argument's type to
bool.
* libmisc/utmp.c: Use bool when possible (found_utmpx,
found_utmp).
* libmisc/utmp.c: Add note about unchecked return values.
nekral-guest [Sun, 25 May 2008 22:03:09 +0000 (22:03 +0000)]
* Change type of added to bool.
* Avoid implicit conversion of pointers to booleans.
nekral-guest [Sun, 25 May 2008 21:52:14 +0000 (21:52 +0000)]
* hushed returns a bool instead of int.
* Avoid assignments in comparisons.
* (hushed) Change type of found to bool.
* Add brackets.
* Always check if the user or the shell is in
the file. Do not check the first character of the line first. This
is simpler and match better with the HUSHLOGIN_FILE documentation.
nekral-guest [Sun, 25 May 2008 21:43:05 +0000 (21:43 +0000)]
* lib/getdef.h, lib/getdef.c: getdef_bool returns a bool instead
of int.
* lib/getdef.c: Change typo of def_loaded to bool.
* lib/getdef.c: Add brackets.
* lib/getdef.c: Avoid assignment in comparisons.
nekral-guest [Sun, 25 May 2008 21:34:38 +0000 (21:34 +0000)]
Allow usage of booleans in the source.
nekral-guest [Sun, 25 May 2008 21:33:38 +0000 (21:33 +0000)]
* is_my_tty returns a bool.
* Avoid implicit conversion of integers to booleans.
* Add brackets.
nekral-guest [Sun, 25 May 2008 21:23:28 +0000 (21:23 +0000)]
* Avoid assignment in comparisons, implicit comparison of integers to booleans.
* The return value of closedir is not checked on purpose.
* Add brackets.
nekral-guest [Sun, 25 May 2008 20:58:16 +0000 (20:58 +0000)]
* libmisc/chkname.h, libmisc/chkname.c: check_group_name (resp.
check_user_name) renamed to is_valid_user_name (resp.
is_valid_group_name). is_valid_user_name and is_valid_group_name
return a bool.
* src/grpck.c, src/newusers.c, src/usermod.c, src/useradd.c,
src/groupmod.c, src/pwck.c, src/groupadd.c: Use is_valid_user_name
and is_valid_group_name, following above change.
* libmisc/chkname.c: Avoid implicit conversion of chars to
booleans. Add brackets and parenthesis.
nekral-guest [Sun, 25 May 2008 20:41:13 +0000 (20:41 +0000)]
Avoid implicit conversion of integers / pointers to booleans.
nekral-guest [Sun, 25 May 2008 20:39:31 +0000 (20:39 +0000)]
Avoid implicit conversion of integers / pointers to booleans.
nekral-guest [Sun, 25 May 2008 20:37:51 +0000 (20:37 +0000)]
Allow usage of booleans in the source.
nekral-guest [Sun, 25 May 2008 20:30:45 +0000 (20:30 +0000)]
Allow --disable-man and --enable-man=no.
nekral-guest [Sat, 24 May 2008 23:15:47 +0000 (23:15 +0000)]
Set the version to 4.1.2.
nekral-guest [Sat, 24 May 2008 23:03:24 +0000 (23:03 +0000)]
Prepare the 4.1.2 release
* NEWS: set the release date.
* man/po/*.po, po/*.po: Updated PO files.
nekral-guest [Sat, 24 May 2008 22:58:21 +0000 (22:58 +0000)]
Run msgmerge with --previous. (This requires gettext >= 0.16)
nekral-guest [Sat, 24 May 2008 15:35:15 +0000 (15:35 +0000)]
* libmisc/copydir.c (remove_tree): As we always use remove_tree
followed by rmdir to remove the directory itself, delete also the
root directory in remove_tree.
* src/userdel.c, src/usermod.c: Do not call rmdir after
remove_tree.
nekral-guest [Sat, 24 May 2008 15:19:02 +0000 (15:19 +0000)]
* libmisc/fields.c: Avoid assignments in comparisons, assignments
with post increments (x++), use of integers as booleans, and
explicitly mark blocks with brackets.
* libmisc/copydir.c: Likewise.
* libmisc/fields.c: Add comments.
* libmisc/copydir.c: Mark function whose return value is not
checked as such.
* libmisc/copydir.c (remove_tree): Make sure unlink is successful
when removing files.
nekral-guest [Sat, 24 May 2008 14:11:31 +0000 (14:11 +0000)]
Simply passwd_check since it's never used when configured with PAM support.
nekral-guest [Sat, 24 May 2008 14:09:35 +0000 (14:09 +0000)]
* libmisc/list.c: Avoid assignments in comparisons, assignments
with post increments (x++), use of integers as booleans, and
explicitly mark blocks with brackets.
nekral-guest [Sat, 24 May 2008 13:08:58 +0000 (13:08 +0000)]
Fix compiler warnings:
* libmisc/audit_help.c: Include prototypes.h to get the prototype
of audit_help_open.
* libmisc/salt.c: Use booleans instead of negating integers.
* src/passwd.c: Declare the check_selinux_access prototype and
avoid name clashes (change_user -> changed_user; change_uid ->
changed_uid; access -> requested_access)
nekral-guest [Fri, 23 May 2008 20:55:11 +0000 (20:55 +0000)]
Use fputs rather than fprintf for constant strings.
nekral-guest [Fri, 23 May 2008 20:47:45 +0000 (20:47 +0000)]
Added TODO items.
nekral-guest [Wed, 21 May 2008 18:58:06 +0000 (18:58 +0000)]
Indicate that login should be executed with "exec login" if called from a shell.
nekral-guest [Wed, 21 May 2008 18:25:48 +0000 (18:25 +0000)]
Remove the advices for the choice of a good password (they are debatable). Point to http://en.wikipedia.org/wiki/Password_strength instead.
nekral-guest [Tue, 20 May 2008 13:34:06 +0000 (13:34 +0000)]
*** security:
- generation of SHA encrypted passwords (chpasswd, gpasswd, newusers,
chgpasswd; and also passwd if configured without PAM support).
The number of rounds and number of salt bytes was fixed to their lower
allowed values (resp. configurable and 8), hence voiding some of the
advantages of this encryption method. Dictionary attacks with
precomputed tables were easier than expected, but still harder than with
the MD5 (or DES) methods.
* NEWS, libmisc/salt.c (SHA_salt_size): Seed the RNG, and fix a
overflow. These caused the SHA salt size to always be 8 bytes,
instead of being in the 8-16 range. Thanks to Peter Vrabec
pvrabec@redhat.com for noticing.
* NEWS, libmisc/salt.c (SHA_salt_rounds): Seed the RNG with
seedRNG instead of srand, and fix the same overflow. This caused
the number of rounds to always be the smallest one.
nekral-guest [Mon, 19 May 2008 22:18:14 +0000 (22:18 +0000)]
Tag the section which require --enable-shadowgrp or --with-sha-crypt
accordingly.
nekral-guest [Mon, 19 May 2008 21:57:48 +0000 (21:57 +0000)]
SHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can only exist if configured with --with-sha-crypt.
nekral-guest [Mon, 19 May 2008 21:32:19 +0000 (21:32 +0000)]
Document the -k, --skel option, and update the -m, --create-home documentation.
nekral-guest [Mon, 19 May 2008 21:04:34 +0000 (21:04 +0000)]
Sort options.
nekral-guest [Mon, 19 May 2008 20:59:51 +0000 (20:59 +0000)]
SHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
only exist if configured with --with-sha-crypt.
nekral-guest [Mon, 19 May 2008 20:58:59 +0000 (20:58 +0000)]
SHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
only exist if configured with --with-sha-crypt.
nekral-guest [Mon, 19 May 2008 20:56:48 +0000 (20:56 +0000)]
Document the sections closed by #endif
nekral-guest [Mon, 19 May 2008 20:53:12 +0000 (20:53 +0000)]
* NEWS, man/groupadd.8.xml: Document the -r, --system option.
* NEWS, man/newusers.8.xml: Document the -r, --system option.
* NEWS, man/newusers.8.xml: Document the -c, --crypt-method and
-s, --sha-rounds options.
nekral-guest [Mon, 19 May 2008 20:31:48 +0000 (20:31 +0000)]
Fix formatting.
nekral-guest [Mon, 19 May 2008 19:43:24 +0000 (19:43 +0000)]
Document the -r, --system option.
nekral-guest [Sun, 18 May 2008 16:38:13 +0000 (16:38 +0000)]
Fix typo.
nekral-guest [Sun, 18 May 2008 15:06:51 +0000 (15:06 +0000)]
Import Debian patch 487_passwd_chauthtok_failed_message
* libmisc/pam_pass.c: Be more verbose and indicate that the
password was not changed when pam_chauthtok fails (in addition to
the PAM error, which may not be comprehensible for the users).
nekral-guest [Sun, 18 May 2008 14:54:35 +0000 (14:54 +0000)]
Import Debian patch 434_login_stop_checking_args_after--
* NEWS, src/login.c (check_flags): Stop checking the arguments
after --. The later options will be sent to the shell, and do not
need to be checked.
nekral-guest [Sun, 18 May 2008 13:41:56 +0000 (13:41 +0000)]
* src/vipw.c, src/su.c, src/newgrp.c: Harmonize the children's
SIGSTOP handling. Raise the signal which stopped the child instead
of always SIGSTOP.
Import Debian patch 406_vipw_resume_properly.
Thanks to Dean Gaudet.
* NEWS, src/vipw.c: Resume properly after ^Z.
nekral-guest [Sun, 27 Apr 2008 00:40:09 +0000 (00:40 +0000)]
Make sure every source files are distributed with a copyright and license.
Files with no license use the default 3-clauses BSD license. The copyright
were mostly not recorded; they were updated according to the Changelog.
"Julianne Frances Haugh and contributors" changed to "copyright holders
and contributors".
nekral-guest [Sun, 27 Apr 2008 00:27:59 +0000 (00:27 +0000)]
If the SULOG_FILE does not exist when an su session is logged, make sure
the file is created with group root, instead of using the group of the
caller.
nekral-guest [Sun, 27 Apr 2008 00:24:49 +0000 (00:24 +0000)]
Allow non-US-ASCII characters in the GECOS fields ("name", "room number",
and "other info" fields).
nekral-guest [Wed, 16 Apr 2008 22:04:46 +0000 (22:04 +0000)]
Fix build failure when configured with audit support. Thanks to Mike
Frysinger for reporting it.
nekral-guest [Wed, 16 Apr 2008 22:03:43 +0000 (22:03 +0000)]
Fix ident.
nekral-guest [Wed, 16 Apr 2008 21:52:46 +0000 (21:52 +0000)]
Ensure that getpwent() is used in setpwent(), getpwent(),
endpwend() sequences (ditto for getgrent(), getspent(), and
getsgent()). The only real (minor) issue was in login, which kept
the passwd file open.
* libmisc/entry.c: Remove unneeded setspent() and endspent() (only
getspnam is called in the middle).
* libmisc/find_new_ids.c: Make sure to close the password and
group files with endpwent() and endgrent().
* libmisc/pwdcheck.c: Remove unneeded endspent() (only getspnam()
is called before).
* src/lastlog.c, src/passwd.c, src/groupmod.c, src/faillog.c,
src/groups.c: Make sure to close
the password file with endpwent().
* src/login.c: Remove unneeded setpwent() (only xgetpwnam is
called before).
* src/login.c, src/newgrp.c: Fix typos in comments.
nekral-guest [Wed, 16 Apr 2008 21:24:14 +0000 (21:24 +0000)]
Fix typo.
nekral-guest [Wed, 16 Apr 2008 21:18:20 +0000 (21:18 +0000)]
Also fix the detection of the pam and selinux features:
Fail if the feature is requested but the library (or
header file) could not be found. If nothing is specified, enable
the feature only if we can find the library (or header file).
nekral-guest [Wed, 16 Apr 2008 20:16:43 +0000 (20:16 +0000)]
Document --with-selinux as "yes if found" rather than "autodetected" for consistency with other options.
nekral-guest [Wed, 16 Apr 2008 20:09:03 +0000 (20:09 +0000)]
Fix the detection of the audit library and header file.
nekral-guest [Fri, 4 Apr 2008 18:50:22 +0000 (18:50 +0000)]
* NEWS, etc/pam.d/Makefile.am: Add chfn, chsh, and userdel to
$(pamd_files). Remove the duplicate useradd. And sort
alphabetically. Thanks to Mark Rosenstand <mark@borkware.net>.
* NEWS: Prepare next release, 4.1.2.