diff options
Diffstat (limited to 'data/bash/shebang.diff')
-rw-r--r-- | data/bash/shebang.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/bash/shebang.diff b/data/bash/shebang.diff new file mode 100644 index 000000000..c850d5c6d --- /dev/null +++ b/data/bash/shebang.diff @@ -0,0 +1,12 @@ +diff -ur bash/execute_cmd.c bash/execute_cmd.c +--- bash/execute_cmd.c 2018-01-29 10:13:20.000000000 -1000 ++++ bash/execute_cmd.c 2018-03-19 17:04:07.000000000 -1000 +@@ -5474,7 +5474,7 @@ + + /* If we get to this point, then start checking out the file. + Maybe it is something we can hack ourselves. */ +- if (i != ENOEXEC) ++ if (i != ENOEXEC && i != EPERM) // EPERM is the error on iOS11 when it can't execute a shebang + { + /* make sure this is set correctly for file_error/report_error */ + last_command_exit_value = (i == ENOENT) ? EX_NOTFOUND : EX_NOEXEC; /* XXX Posix.2 says that exit status is 126 */ |