Blame SOURCES/0003-watchdog-5.13-rhsel.patch

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