Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37842380
en ru br
ALT Linux repositórios
S:5.16-alt1
5.0: 5.3-alt4
4.1: 5.3-alt4
4.0: 5.2.6-alt3

Group :: Sistema/Kernel e hardware
RPM: watchdog

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0003-watchdog-5.13-rhsel.patch
Download


diff -up watchdog-5.13/src/test_binary.c.rhsel watchdog-5.13/src/test_binary.c
--- watchdog-5.13/src/test_binary.c.rhsel	2013-10-24 15:53:53.375647812 +0200
+++ watchdog-5.13/src/test_binary.c	2013-10-24 15:54:05.201666469 +0200
@@ -101,11 +101,11 @@ int check_bin(char *tbinary, time_t time
 	 * to cause trouble, so make them go to their respective files */	
 	strcpy(filename_buf, logdir);
 	strcat(filename_buf, "/test-bin.stdout");
-	if (!freopen(filename_buf, "a+", stdout))
+	if (!freopen(filename_buf, "a", stdout))
 	    exit (errno);
 	strcpy(filename_buf, logdir);
 	strcat(filename_buf, "/test-bin.stderr");
-	if (!freopen(filename_buf, "a+", stderr))
+	if (!freopen(filename_buf, "a", stderr))
 	    exit (errno);
 
 	/* now start binary */
diff -up watchdog-5.13/src/watchdog.c.rhsel watchdog-5.13/src/watchdog.c
--- watchdog-5.13/src/watchdog.c.rhsel	2013-10-24 15:58:09.245051038 +0200
+++ watchdog-5.13/src/watchdog.c	2013-10-24 15:58:15.958061605 +0200
@@ -148,11 +148,11 @@ static int repair(char *rbinary, int res
 	 * So make stdout and stderr go to their respective files */
 	strcpy(filename_buf, logdir);
 	strcat(filename_buf, "/repair-bin.stdout");
-	if (!freopen(filename_buf, "a+", stdout))
+	if (!freopen(filename_buf, "a", stdout))
 		exit (errno);
 	strcpy(filename_buf, logdir);
 	strcat(filename_buf, "/repair-bin.stderr");
-	if (!freopen(filename_buf, "a+", stderr))
+	if (!freopen(filename_buf, "a", stderr))
 		exit (errno);
 
         /* now start binary */
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009