Revision: 2509 http://geany.svn.sourceforge.net/geany/?rev=2509&view=rev Author: eht16 Date: 2008-04-20 04:43:07 -0700 (Sun, 20 Apr 2008)
Log Message: ----------- Don't chmod created run script when using the Run command and execute the script with /bin/sh on Unix-like systems to be able to run files on FAT filesystems.
Modified Paths: -------------- trunk/ChangeLog trunk/src/build.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-04-19 10:39:27 UTC (rev 2508) +++ trunk/ChangeLog 2008-04-20 11:43:07 UTC (rev 2509) @@ -1,3 +1,11 @@ +2008-04-20 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/build.c: + Don't chmod created run script when using the Run command and + execute the script with /bin/sh on Unix-like systems to be able + to run files on FAT filesystems. + + 2008-04-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* tagmanager/js.c:
Modified: trunk/src/build.c =================================================================== --- trunk/src/build.c 2008-04-19 10:39:27 UTC (rev 2508) +++ trunk/src/build.c 2008-04-20 11:43:07 UTC (rev 2509) @@ -792,7 +792,7 @@ } #else argv[term_argv_len ] = g_strdup("-e"); - argv[term_argv_len + 1] = g_strdup(RUN_SCRIPT_CMD); + argv[term_argv_len + 1] = g_strconcat("/bin/sh ", RUN_SCRIPT_CMD, NULL); #endif argv[term_argv_len + 2] = NULL;
@@ -1000,13 +1000,6 @@ fputs(str, fp); g_free(str);
-#ifndef G_OS_WIN32 - if (chmod(fname, 0700) != 0) - { - g_unlink(fname); - return FALSE; - } -#endif fclose(fp);
return TRUE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.