0864ef
diff -up watchdog-5.13/src/test_binary.c.rhsel watchdog-5.13/src/test_binary.c
0864ef
--- watchdog-5.13/src/test_binary.c.rhsel	2013-10-24 15:53:53.375647812 +0200
0864ef
+++ watchdog-5.13/src/test_binary.c	2013-10-24 15:54:05.201666469 +0200
0864ef
@@ -101,11 +101,11 @@ int check_bin(char *tbinary, time_t time
0864ef
 	 * to cause trouble, so make them go to their respective files */	
0864ef
 	strcpy(filename_buf, logdir);
0864ef
 	strcat(filename_buf, "/test-bin.stdout");
0864ef
-	if (!freopen(filename_buf, "a+", stdout))
0864ef
+	if (!freopen(filename_buf, "a", stdout))
0864ef
 	    exit (errno);
0864ef
 	strcpy(filename_buf, logdir);
0864ef
 	strcat(filename_buf, "/test-bin.stderr");
0864ef
-	if (!freopen(filename_buf, "a+", stderr))
0864ef
+	if (!freopen(filename_buf, "a", stderr))
0864ef
 	    exit (errno);
0864ef
 
0864ef
 	/* now start binary */
0864ef
diff -up watchdog-5.13/src/watchdog.c.rhsel watchdog-5.13/src/watchdog.c
0864ef
--- watchdog-5.13/src/watchdog.c.rhsel	2013-10-24 15:58:09.245051038 +0200
0864ef
+++ watchdog-5.13/src/watchdog.c	2013-10-24 15:58:15.958061605 +0200
0864ef
@@ -148,11 +148,11 @@ static int repair(char *rbinary, int res
0864ef
 	 * So make stdout and stderr go to their respective files */
0864ef
 	strcpy(filename_buf, logdir);
0864ef
 	strcat(filename_buf, "/repair-bin.stdout");
0864ef
-	if (!freopen(filename_buf, "a+", stdout))
0864ef
+	if (!freopen(filename_buf, "a", stdout))
0864ef
 		exit (errno);
0864ef
 	strcpy(filename_buf, logdir);
0864ef
 	strcat(filename_buf, "/repair-bin.stderr");
0864ef
-	if (!freopen(filename_buf, "a+", stderr))
0864ef
+	if (!freopen(filename_buf, "a", stderr))
0864ef
 		exit (errno);
0864ef
 
0864ef
         /* now start binary */