+2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/groupdel.c: Do not raise an error if the group does not
+ exist in the gshadow file.
+
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* etc/login.defs: Document MAX_MEMBERS_PER_GROUP.
- groupadd
* New option -p/--password to specify an encrypted password.
* New option -r, --system for system accounts.
+- groupdel
+ * Do not fail if the group does not exist in the gshadow file.
- groupmems
* Fix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.
- groupmod
/*
* Delete the shadow group entries as well.
*/
- if (is_shadow_grp && !sgr_remove (group_name)) {
- fprintf (stderr,
- _("%s: error removing shadow group entry\n"), Prog);
- errors++;
+ if (is_shadow_grp && (sgr_locate (group_name) != NULL)) {
+ if (!sgr_remove (group_name)) {
+ fprintf (stderr,
+ _("%s: error removing shadow group entry\n"),
+ Prog);
+ errors++;
+ }
}
#endif /* SHADOWGRP */
#ifdef WITH_AUDIT