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