Skip to content

Commit f0a4b31

Browse files
committed
Get rid of warning
1 parent 29750b8 commit f0a4b31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/auditd.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ static void cont_handler(struct ev_loop *loop, struct ev_signal *sig,
228228

229229
int sr_fd = fileno(f);
230230
if (sr_fd > 0)
231-
(void)fchown(sr_fd, 0, config.log_group);
231+
if (fchown(sr_fd, 0, config.log_group)) {
232+
audit_msg(LOG_INFO,
233+
"fchown on state report failed (%s) continuing",
234+
strerror(errno));
235+
}
232236
fprintf(f, "audit version = %s\n", VERSION);
233237
time_t now = time(0);
234238
strftime(buf, sizeof(buf), "%x %X", localtime(&now));

0 commit comments

Comments
 (0)