incorrect audit record in userdel
Peter Vrabec <[email protected]> Tue, 29 Nov 2005 11:36:03 -0500
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
The audit record emitted from userdel when a user's mail file is removed incorrectly says the operation failed even when it succeeded. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174392
shadow-4.0.13-auditUserdel.patch
(text/x-patch, 347 B)
--- shadow-4.0.13/src/userdel.c.auditUserdel 2005-11-29 11:19:04.000000000 -0500
+++ shadow-4.0.13/src/userdel.c 2005-11-29 11:20:06.000000000 -0500
@@ -646,7 +646,7 @@
#ifdef WITH_AUDIT
else {
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting mail file",
- user_name, user_id, 0);
+ user_name, user_id, 1);
}
#endif
}