* 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:
parent
398cf8ee6f
commit
a22c7e731a
@ -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().
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user