SF.net SVN: geany:[3651] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Mar 25 18:52:17 UTC 2009


Revision: 3651
          http://geany.svn.sourceforge.net/geany/?rev=3651&view=rev
Author:   eht16
Date:     2009-03-25 18:52:17 +0000 (Wed, 25 Mar 2009)

Log Message:
-----------
Delete the geany_run_script.sh immediately after execution to prevent leaking old copies when the script was quit unexpectedly (closes #2710482, patch by Martin Olsson, thanks).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/build.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-03-24 20:35:28 UTC (rev 3650)
+++ trunk/ChangeLog	2009-03-25 18:52:17 UTC (rev 3651)
@@ -1,3 +1,11 @@
+2009-03-25  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/build.c:
+   Delete the geany_run_script.sh immediately after execution
+   to prevent leaking old copies when the script was quit unexpectedly
+   (closes #2710482, patch by Martin Olsson, thanks).
+
+
 2009-03-24  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
 
  * plugins/htmlchars.c:

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2009-03-24 20:35:28 UTC (rev 3650)
+++ trunk/src/build.c	2009-03-25 18:52:17 UTC (rev 3651)
@@ -949,8 +949,8 @@
 	str = g_strdup_printf("%s\n\n%s\ndel %s\n", cmd, (autoclose) ? "" : "pause", fname);
 #else
 	str = g_strdup_printf(
-		"#!/bin/sh\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
-		\n\n%s\nrm $0\n", cmd, (autoclose) ? "" :
+		"#!/bin/sh\n\nrm $0\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
+		\n\n%s\n", cmd, (autoclose) ? "" :
 		"\necho \"Press return to continue\"\n#to be more compatible with shells like dash\ndummy_var=\"\"\nread dummy_var");
 #endif
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list