* src/groupdel.c: The ID argument of audit_logger is an unsigned

int. Use AUDIT_NO_ID instead of -1.
This commit is contained in:
nekral-guest 2008-06-13 20:59:04 +00:00
parent 398cf8ee6f
commit a22c7e731a
2 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groupdel.c: The ID argument of audit_logger is an unsigned
int. Use AUDIT_NO_ID instead of -1.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net> 2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/expiry.c: Ignore the return value of signal(). * src/expiry.c: Ignore the return value of signal().

View File

@ -100,8 +100,9 @@ static void fail_exit (int code)
#endif #endif
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
group_name, -1, 0); "deleting group",
group_name, AUDIT_NO_ID, 0);
#endif #endif
exit (code); exit (code);
@ -143,8 +144,9 @@ static void grp_update (void)
static void close_files (void) static void close_files (void)
{ {
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", group_name, audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
group_id, 1); "deleting group",
group_name, (unsigned int) group_id, 1);
#endif #endif
SYSLOG ((LOG_INFO, "remove group `%s'\n", group_name)); SYSLOG ((LOG_INFO, "remove group `%s'\n", group_name));
@ -317,8 +319,8 @@ int main (int argc, char **argv)
Prog, group_name); Prog, group_name);
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
"deleting group", "deleting group",
group_name, -1, 0); group_name, AUDIT_NO_ID, 0);
#endif #endif
exit (E_NOTFOUND); exit (E_NOTFOUND);
} }
@ -338,8 +340,9 @@ int main (int argc, char **argv)
Prog, group_name); Prog, group_name);
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
group_name, -1, 0); "deleting group",
group_name, AUDIT_NO_ID, 0);
#endif #endif
if (!yp_get_default_domain (&nis_domain) && if (!yp_get_default_domain (&nis_domain) &&
!yp_master (nis_domain, "group.byname", &nis_master)) { !yp_master (nis_domain, "group.byname", &nis_master)) {