One AUDIT_USER_START remained. Replace it with AUDIT_CHGRP_ID also.

This commit is contained in:
nekral-guest 2008-02-14 18:51:37 +00:00
parent a8bc585e33
commit 80ef1db3b3

View File

@ -182,7 +182,15 @@ failure:
*/
closelog ();
#ifdef WITH_AUDIT
audit_logger (AUDIT_USER_START, Prog, "changing", NULL, getuid (), 0);
if (groupname) {
snprintf (audit_buf, sizeof(audit_buf),
"changing new-group=%s", groupname);
audit_logger (AUDIT_CHGRP_ID, Prog,
audit_buf, NULL, getuid (), 0);
} else {
audit_logger (AUDIT_CHGRP_ID, Prog, "changing",
NULL, getuid (), 0);
}
#endif
exit (1);
}