+2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/groupdel.c: Do not log that the group was deleted if an
+ error occurred.
+
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: Do not raise an error if the group does not
}
}
#endif /* SHADOWGRP */
-#ifdef WITH_AUDIT
- audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", group_name,
- group_id, 1);
-#endif
- SYSLOG ((LOG_INFO, "remove group `%s'\n", group_name));
return;
}
*/
static void close_files (void)
{
+#ifdef WITH_AUDIT
+ audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", group_name,
+ group_id, 1);
+#endif
+ SYSLOG ((LOG_INFO, "remove group `%s'\n", group_name));
+
if (!gr_close ()) {
fprintf (stderr, _("%s: cannot rewrite group file\n"), Prog);
errors++;