]> granicus.if.org Git - shadow/log
shadow
16 years ago * libmisc/valid.c: Avoid implicit conversion of pointers /chars to booleans.
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.

16 years ago * libmisc/yesno.c: yes_or_no returns a bool instead of int.
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.

16 years ago(failcheck): The failed argument is a bool.
nekral-guest [Sun, 25 May 2008 22:54:20 +0000 (22:54 +0000)]
(failcheck): The failed argument is a bool.

16 years agoAvoid implicit conversion of integers to booleans.
nekral-guest [Sun, 25 May 2008 22:51:46 +0000 (22:51 +0000)]
Avoid implicit conversion of integers to booleans.

16 years ago * libmisc/rlogin.c: Avoid assignments in comparisons.
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.

16 years ago * libmisc/failure.c (failcheck): The failed argument is a bool.
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.

16 years ago * libmisc/myname.c: Avoid assignments in comparisons.
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.

16 years ago(no commit message)
nekral-guest [Sun, 25 May 2008 22:14:19 +0000 (22:14 +0000)]

16 years ago * libmisc/utmp.c (checkutmp): Change picky argument's type to
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.

16 years ago* Change type of added to bool.
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.

16 years ago* hushed returns a bool instead of int.
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.

16 years ago * lib/getdef.h, lib/getdef.c: getdef_bool returns a bool instead
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.

16 years agoAllow usage of booleans in the source.
nekral-guest [Sun, 25 May 2008 21:34:38 +0000 (21:34 +0000)]
Allow usage of booleans in the source.

16 years ago* is_my_tty returns a bool.
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.

16 years ago* Avoid assignment in comparisons, implicit comparison of integers to booleans.
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.

16 years ago * libmisc/chkname.h, libmisc/chkname.c: check_group_name (resp.
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.

16 years agoAvoid implicit conversion of integers / pointers to booleans.
nekral-guest [Sun, 25 May 2008 20:41:13 +0000 (20:41 +0000)]
Avoid implicit conversion of integers / pointers to booleans.

16 years agoAvoid 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.

16 years agoAllow usage of booleans in the source.
nekral-guest [Sun, 25 May 2008 20:37:51 +0000 (20:37 +0000)]
Allow usage of booleans in the source.

16 years agoAllow --disable-man and --enable-man=no.
nekral-guest [Sun, 25 May 2008 20:30:45 +0000 (20:30 +0000)]
Allow --disable-man and --enable-man=no.

16 years agoSet the version to 4.1.2.
nekral-guest [Sat, 24 May 2008 23:15:47 +0000 (23:15 +0000)]
Set the version to 4.1.2.

16 years ago Prepare the 4.1.2 release
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.

16 years agoRun msgmerge with --previous. (This requires gettext >= 0.16)
nekral-guest [Sat, 24 May 2008 22:58:21 +0000 (22:58 +0000)]
Run msgmerge with --previous. (This requires gettext >= 0.16)

16 years ago * libmisc/copydir.c (remove_tree): As we always use remove_tree
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.

16 years ago * libmisc/fields.c: Avoid assignments in comparisons, assignments
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.

16 years agoSimply passwd_check since it's never used when configured with PAM support.
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.

16 years ago * libmisc/list.c: Avoid assignments in comparisons, assignments
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.

16 years ago Fix compiler warnings:
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)

16 years agoUse fputs rather than fprintf for constant strings.
nekral-guest [Fri, 23 May 2008 20:55:11 +0000 (20:55 +0000)]
Use fputs rather than fprintf for constant strings.

16 years agoAdded TODO items.
nekral-guest [Fri, 23 May 2008 20:47:45 +0000 (20:47 +0000)]
Added TODO items.

16 years agoIndicate that login should be executed with "exec login" if called from a shell.
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.

16 years agoRemove the advices for the choice of a good password (they are debatable). Point...
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.

16 years ago*** security:
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.

16 years agoTag the section which require --enable-shadowgrp or --with-sha-crypt
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.

16 years agoSHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can only exist if configured with ...
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.

16 years agoDocument the -k, --skel option, and update the -m, --create-home documentation.
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.

16 years agoSort options.
nekral-guest [Mon, 19 May 2008 21:04:34 +0000 (21:04 +0000)]
Sort options.

16 years agoSHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
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.

16 years agoSHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
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.

16 years agoDocument the sections closed by #endif
nekral-guest [Mon, 19 May 2008 20:56:48 +0000 (20:56 +0000)]
Document the sections closed by #endif

16 years ago * NEWS, man/groupadd.8.xml: Document the -r, --system option.
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.

16 years agoFix formatting.
nekral-guest [Mon, 19 May 2008 20:31:48 +0000 (20:31 +0000)]
Fix formatting.

16 years agoDocument the -r, --system option.
nekral-guest [Mon, 19 May 2008 19:43:24 +0000 (19:43 +0000)]
Document the -r, --system option.

16 years agoFix typo.
nekral-guest [Sun, 18 May 2008 16:38:13 +0000 (16:38 +0000)]
Fix typo.

16 years ago Import Debian patch 487_passwd_chauthtok_failed_message
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).

16 years ago Import Debian patch 434_login_stop_checking_args_after--
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.

16 years ago * src/vipw.c, src/su.c, src/newgrp.c: Harmonize the children's
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.

16 years agoMake sure every source files are distributed with a copyright and license.
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".

16 years agoIf the SULOG_FILE does not exist when an su session is logged, make sure
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.

16 years agoAllow non-US-ASCII characters in the GECOS fields ("name", "room number",
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).

16 years agoFix build failure when configured with audit support. Thanks to Mike
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.

16 years agoFix ident.
nekral-guest [Wed, 16 Apr 2008 22:03:43 +0000 (22:03 +0000)]
Fix ident.

16 years agoEnsure that getpwent() is used in setpwent(), getpwent(),
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.

16 years agoFix typo.
nekral-guest [Wed, 16 Apr 2008 21:24:14 +0000 (21:24 +0000)]
Fix typo.

16 years agoAlso fix the detection of the pam and selinux features:
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).

16 years agoDocument --with-selinux as "yes if found" rather than "autodetected" for consistency...
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.

16 years agoFix the detection of the audit library and header file.
nekral-guest [Wed, 16 Apr 2008 20:09:03 +0000 (20:09 +0000)]
Fix the detection of the audit library and header file.

16 years ago* NEWS, etc/pam.d/Makefile.am: Add chfn, chsh, and userdel to
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.

16 years agoCommit the PO and POTs released with 4.1.1.
nekral-guest [Thu, 3 Apr 2008 20:27:37 +0000 (20:27 +0000)]
Commit the PO and POTs released with 4.1.1.

16 years ago * NEWS, configure.in: Prepare release 4.1.1
nekral-guest [Wed, 2 Apr 2008 21:55:27 +0000 (21:55 +0000)]
 * NEWS, configure.in: Prepare release 4.1.1
 * NEWS: Fix the release date of 4.1.0. Was in 2007, not 2008.

16 years agoUpdate according to the file under review. Thanks to Jean-Luc Coulon.
nekral-guest [Wed, 2 Apr 2008 21:54:23 +0000 (21:54 +0000)]
Update according to the file under review. Thanks to Jean-Luc Coulon.

16 years agoAdd TODO items for SELINUX.
nekral-guest [Wed, 2 Apr 2008 21:42:04 +0000 (21:42 +0000)]
Add TODO items for SELINUX.

16 years agoGerman translation update
bubulle [Tue, 1 Apr 2008 19:01:16 +0000 (19:01 +0000)]
German translation update

16 years agoBasque translation update
bubulle [Mon, 31 Mar 2008 17:54:52 +0000 (17:54 +0000)]
Basque translation update

16 years agoupdated to 360t71f. Thanks to Leandro Azevedo <leorock182@gmail.com>.
nekral-guest [Sun, 30 Mar 2008 12:52:57 +0000 (12:52 +0000)]
updated to 360t71f. Thanks to Leandro Azevedo  <leorock182@gmail.com>.

16 years agoTurkish translation update
bubulle [Sun, 30 Mar 2008 12:18:40 +0000 (12:18 +0000)]
Turkish translation update

16 years agoupdated to 431t. Thanks to Clytie Siddall
nekral-guest [Sun, 30 Mar 2008 12:06:33 +0000 (12:06 +0000)]
updated to 431t. Thanks to Clytie Siddall

16 years agoUpdated Swedish translation. Thanks to Daniel Nylander.
nekral-guest [Sun, 30 Mar 2008 11:54:19 +0000 (11:54 +0000)]
Updated Swedish translation. Thanks to Daniel Nylander.

16 years agoUpdated to 431t. Thanks to helix84 <helix84@centrum.sk>.
nekral-guest [Fri, 28 Mar 2008 23:23:41 +0000 (23:23 +0000)]
Updated to 431t. Thanks to helix84 <helix84@centrum.sk>.

16 years agoItalian translation update
bubulle [Thu, 27 Mar 2008 18:54:34 +0000 (18:54 +0000)]
Italian translation update

16 years ago* src/passwd.c, NEWS: Make SE Linux tests more strict, when the
nekral-guest [Wed, 26 Mar 2008 22:00:50 +0000 (22:00 +0000)]
* src/passwd.c, NEWS: Make SE Linux tests more strict, when the
 real UID is 0 SE Linux checks will be performed. Thanks to
 Russell Coker  <russell@coker.com.au>
* TODO: Added entries regarding SE Linux.

16 years agoAdded TODO entries.
nekral-guest [Wed, 26 Mar 2008 21:44:50 +0000 (21:44 +0000)]
Added TODO entries.

16 years agoRussian translation update
bubulle [Mon, 24 Mar 2008 18:34:04 +0000 (18:34 +0000)]
Russian translation update

16 years agoUpdated Korean and Portuguese translations
bubulle [Sun, 23 Mar 2008 08:39:58 +0000 (08:39 +0000)]
Updated Korean and Portuguese translations

16 years agoFix manpages generation. The SYS_GID_MAX and SYS_UID_MAX entities were not defined.
nekral-guest [Mon, 17 Mar 2008 23:07:04 +0000 (23:07 +0000)]
Fix manpages generation. The SYS_GID_MAX and SYS_UID_MAX entities were not defined.

16 years agoFix minor compilation warning (assignment used as a comparison).
nekral-guest [Mon, 17 Mar 2008 23:05:59 +0000 (23:05 +0000)]
Fix minor compilation warning (assignment used as a comparison).

16 years agologin_access() is used in src/login.c, and defined in src/login_nopam.c
nekral-guest [Mon, 17 Mar 2008 23:04:46 +0000 (23:04 +0000)]
login_access() is used in src/login.c, and defined in src/login_nopam.c
(which lacks a prototype). Move its prototype from src/login.c to
lib/prototypes.h.

16 years agoCompilation fix. gshadow_locked should only be used if SHADOWGRP is defined.
nekral-guest [Mon, 17 Mar 2008 23:02:23 +0000 (23:02 +0000)]
Compilation fix. gshadow_locked should only be used if SHADOWGRP is defined.

16 years agoFix some warnings. compare_members_lists() is only used if SHADOWGRP is defined.
nekral-guest [Mon, 17 Mar 2008 23:00:49 +0000 (23:00 +0000)]
Fix some warnings. compare_members_lists() is only used if SHADOWGRP is defined.

16 years agoRemove unused global variable.
nekral-guest [Sat, 8 Mar 2008 23:52:50 +0000 (23:52 +0000)]
Remove unused global variable.

16 years ago* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
nekral-guest [Sat, 8 Mar 2008 23:01:49 +0000 (23:01 +0000)]
* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
  files are unlocked on exit. Unlock locked files in fail_exit().
  Prefer fail_exit() over exit().
* NEWS, src/groupmod.c: When the GID of a group is changed, update
  also the GID of the passwd entries of the users whose primary
  group is the group being modified.

16 years ago* lib/commonio.c (commonio_remove): Fail when the name to be
nekral-guest [Sat, 8 Mar 2008 22:52:44 +0000 (22:52 +0000)]
* lib/commonio.c (commonio_remove): Fail when the name to be
  removed is used by different entries (like commonio_update does).
* NEWS: This fix the behavior of groupdel when the system is not
  configured to support split group but different group entries
  have the name of the group to be deleted.

16 years agoMake sure the passwd, group, shadow, and gshadow files are unlocked on
nekral-guest [Sat, 8 Mar 2008 22:44:53 +0000 (22:44 +0000)]
Make sure the passwd, group, shadow, and gshadow files are unlocked on
exit. Unlock locked files in fail_exit(). Prefer fail_exit() over exit().

16 years ago * NEWS, src/groupdel.c: Make sure the group, and gshadow files are
nekral-guest [Sat, 8 Mar 2008 21:13:54 +0000 (21:13 +0000)]
* NEWS, src/groupdel.c: Make sure the group, and gshadow files are
unlocked on exit. Add function fail_exit(). Use fail_exit()
instead of exit().
* src/groupdel.c: Fail immediately instead of increasing errors.
Better handling of error cases, like locked group or gshadow file.

16 years agoMake sure the passwd, group, shadow, and gshadow files are unlocked on
nekral-guest [Sat, 8 Mar 2008 21:04:31 +0000 (21:04 +0000)]
Make sure the passwd, group, shadow, and gshadow files are unlocked on
exit. Add function fail_exit(). Use fail_exit() instead of exit().

16 years agoMake sure the group and gshadow files are unlocked on exit. Add function fail_exit().
nekral-guest [Sat, 8 Mar 2008 20:54:54 +0000 (20:54 +0000)]
Make sure the group and gshadow files are unlocked on exit. Add function fail_exit().

16 years agoDo not rewrite the group and gshadow file in case of error.
nekral-guest [Sat, 8 Mar 2008 16:23:22 +0000 (16:23 +0000)]
Do not rewrite the group and gshadow file in case of error.

16 years agoDo not log that the group was deleted if an error occurred.
nekral-guest [Sat, 8 Mar 2008 16:20:55 +0000 (16:20 +0000)]
Do not log that the group was deleted if an error occurred.

16 years agoDo not raise an error if the group does not exist in the gshadow file.
nekral-guest [Sat, 8 Mar 2008 16:17:07 +0000 (16:17 +0000)]
Do not raise an error if the group does not exist in the gshadow file.

16 years agoDocument MAX_MEMBERS_PER_GROUP.
nekral-guest [Sat, 8 Mar 2008 16:05:30 +0000 (16:05 +0000)]
Document MAX_MEMBERS_PER_GROUP.

16 years agoFix typo
nekral-guest [Fri, 7 Mar 2008 20:46:47 +0000 (20:46 +0000)]
Fix typo

16 years ago* src/newgrp.c: Add missing end of line in message.
nekral-guest [Fri, 7 Mar 2008 20:21:15 +0000 (20:21 +0000)]
* src/newgrp.c: Add missing end of line in message.
* src/newgrp.c: Add audit events for the authentication
  (AUDIT_GRP_AUTH). Thansk to Peter Vrabec.

16 years agoOnly reset the entries of existing users with faillog -r (not all numeric
nekral-guest [Wed, 5 Mar 2008 00:10:25 +0000 (00:10 +0000)]
Only reset the entries of existing users with faillog -r (not all numeric
IDs starting from 0). Thanks to Peter Vrabec.

16 years agoFix typo. One "can't open" message is a "can't lock".
nekral-guest [Tue, 4 Mar 2008 23:53:00 +0000 (23:53 +0000)]
Fix typo. One "can't open" message is a "can't lock".

16 years agoWhen a password is moved to the gshadow file, use "x" instead of "x"
nekral-guest [Tue, 26 Feb 2008 20:09:56 +0000 (20:09 +0000)]
When a password is moved to the gshadow file, use "x" instead of "x"
to indicate that the password is shadowed (consistency with grpconv).

16 years agoRe-indent.
nekral-guest [Tue, 26 Feb 2008 19:17:20 +0000 (19:17 +0000)]
Re-indent.

16 years ago * NEWS: Fix failures when the gshadow file is not present. Thanks
nekral-guest [Tue, 26 Feb 2008 19:09:10 +0000 (19:09 +0000)]
 * NEWS: Fix failures when the gshadow file is not present. Thanks
   to Christian Henz (http://bugs.debian.org/467488)
 * src/gpasswd.c (get_group): Do not fail if gshadow is not present. Just use
   the group file and set the grent structure
 * src/gpasswd.c (check_perms): The permissions should be checked
   using both the gshadow and group file. Add a <struct group *>
   parameter, and check if the gshadow file exists (is_shadowgrp).
 * src/gpasswd.c (main): Do not use sgent.sg_mem or sgent.sg_adm if
   the gshadow file is not present (sgent is not initialized in that
   case). The fields of sgent can be set, but not used.

16 years ago * Fix typo in comment.
nekral-guest [Tue, 26 Feb 2008 18:59:28 +0000 (18:59 +0000)]
 * Fix typo in comment.
 * Move comment regarding FIRST_MEMBER_IS_ADMIN to
   where it belongs.
 * Indicate the end of the #ifdef FIRST_MEMBER_IS_ADMIN
   section.

16 years agoAdd the new XML documentation files to EXTRA_DIST.
nekral-guest [Mon, 25 Feb 2008 21:46:27 +0000 (21:46 +0000)]
Add the new XML documentation files to EXTRA_DIST.

16 years agoUse --previous when merging PO files of the manpages.
nekral-guest [Mon, 25 Feb 2008 21:27:31 +0000 (21:27 +0000)]
Use --previous when merging PO files of the manpages.
(I need to find a way to do it for the PO files of the binaries)