* user.c (execute_menu_command): Allow execution on no-exec

filesystems. This fixes Savannah Bug #13832.
This commit is contained in:
Roland Illig 2005-07-31 19:29:04 +00:00
parent ae2ec0ec2e
commit 1b18865579
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-07-31 Roland Illig <roland.illig@gmx.de>
* user.c (execute_menu_command): Allow execution on no-exec
filesystems. This fixes Savannah Bug #13832.
2005-07-31 Roland Illig <roland.illig@gmx.de> 2005-07-31 Roland Illig <roland.illig@gmx.de>
* Makefile.am: Added support for extended character sets. * Makefile.am: Added support for extended character sets.

View File

@ -658,7 +658,11 @@ execute_menu_command (WEdit *edit_widget, const char *commands)
run_view = 0; run_view = 0;
view (file_name, 0, &run_view, 0); view (file_name, 0, &run_view, 0);
} else { } else {
shell_execute (file_name, EXECUTE_HIDE); /* execute the command indirectly to allow execution even
* on no-exec filesystems. */
char *cmd = g_strconcat("/bin/sh ", file_name, (char *)NULL);
shell_execute (cmd, EXECUTE_HIDE);
g_free(cmd);
} }
unlink (file_name); unlink (file_name);
g_free (file_name); g_free (file_name);