* 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.
This commit is contained in:
nekral-guest
2008-02-26 19:09:10 +00:00
parent db479122f3
commit 2a2b2b3aa4
3 changed files with 31 additions and 6 deletions

2
NEWS
View File

@@ -21,6 +21,8 @@ shadow-4.1.0 -> shadow-4.1.1 UNRELEASED
- chage
* Fix bug which forbid to set the aging information of an account with a
passwd entry, but no shadow entry.
- gpasswd
* Fix failures when the gshadow file is not present.
- groupadd
* New option -p/--password to specify an encrypted password.
* New option -r, --system for system accounts.