+2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
+
+ * NEWS, src/groupdel.c: Do not rewrite the group and gshadow file
+ in case of error.
+
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: Do not log that the group was deleted if an
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.
+ * NEWS, 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>
* New option -r, --system for system accounts.
- groupdel
* Do not fail if the group does not exist in the gshadow file.
+ * Do not rewrite the group or gshadow file in case of error.
- groupmems
* Fix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.
- groupmod
open_files ();
grp_update ();
- close_files ();
-
- nscd_flush_cache ("group");
+ if (errors == 0) {
+ close_files ();
+ nscd_flush_cache ("group");
+ }
#ifdef USE_PAM
if (retval == PAM_SUCCESS)