mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* user.c (execute_menu_command): Allow execution on no-exec
filesystems. This fixes Savannah Bug #13832.
This commit is contained in:
parent
ae2ec0ec2e
commit
1b18865579
@ -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>
|
||||
|
||||
* Makefile.am: Added support for extended character sets.
|
||||
|
@ -658,7 +658,11 @@ execute_menu_command (WEdit *edit_widget, const char *commands)
|
||||
run_view = 0;
|
||||
view (file_name, 0, &run_view, 0);
|
||||
} 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);
|
||||
g_free (file_name);
|
||||
|
Loading…
Reference in New Issue
Block a user