-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interp: bash runs scripts if kernel returns ENOEXEC #1065
Comments
Makes sense, or we could just do this by default as part of the default exec handler. Happy to review a patch. |
hugelgupf
added a commit
to hugelgupf/u-root
that referenced
this issue
Mar 4, 2024
Not a good way to figure out how to run something. Filed mvdan/sh#1065 instead. Signed-off-by: Chris Koch <[email protected]>
hugelgupf
added a commit
to hugelgupf/u-root
that referenced
this issue
Mar 4, 2024
Not a good way to figure out how to run something. Filed mvdan/sh#1065 instead. Signed-off-by: Chris Koch <[email protected]>
hugelgupf
added a commit
to hugelgupf/u-root
that referenced
this issue
Mar 4, 2024
Not a good way to figure out how to run something. Filed mvdan/sh#1065 instead. Signed-off-by: Chris Koch <[email protected]>
hugelgupf
added a commit
to u-root/u-root
that referenced
this issue
Mar 4, 2024
Not a good way to figure out how to run something. Filed mvdan/sh#1065 instead. Signed-off-by: Chris Koch <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make a file like such, named
foo
:when I run this with
strace -f bash -c ./foo
I see thatLooks to me like bash will try to execute as a script files with execute permission that get ENOEXEC from the kernel.
This looks like something that could be implemented as an
ExecHandlerFunc
.The text was updated successfully, but these errors were encountered: