diff options
author | Sam Bingner <sam@bingner.com> | 2018-08-03 15:10:33 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-08-03 15:10:33 -1000 |
commit | dc95bec98f232970a41c9815636efa3b9135fcad (patch) | |
tree | e0131743c0c8ddcaff79c88a038fda7695cb11d7 /data/bash/shebang.diff | |
parent | 135b410607f008d3709a7b1374f3f37924eb9fe4 (diff) |
Update bash to 4.4
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 */ |