Blame SOURCES/audit-2.3.5-rotate.patch

ade036
diff -urp audit-2.3.5.orig/src/auditd-event.c audit-2.3.5/src/auditd-event.c
ade036
--- audit-2.3.5.orig/src/auditd-event.c	2014-03-11 13:45:06.000000000 -0400
ade036
+++ audit-2.3.5/src/auditd-event.c	2014-03-11 15:23:10.971506011 -0400
ade036
@@ -705,7 +705,8 @@ static void rotate_logs(struct auditd_co
ade036
 	unsigned int len, i;
ade036
 	char *oldname, *newname;
ade036
 
ade036
-	if (data->config->num_logs < 2)
ade036
+	if (data->config->max_log_size_action == SZ_ROTATE &&
ade036
+				data->config->num_logs < 2)
ade036
 		return;
ade036
 
ade036
 	/* Close audit file. fchmod and fchown errors are not fatal because we