opnsense-src/tools/regression/bin/sh/errors
Jilles Tjoelker 604e8224f8 sh: Do not try to execute binary files as scripts.
If execve() returns an [ENOEXEC] error, check if the file is binary before
trying to execute it using sh. A file is considered binary if at least one
of the first 256 bytes is '\0'.

In particular, trying to execute ELF binaries for the wrong architecture now
fails with an "Exec format error" message instead of syntax errors and
potentially strange results.
2011-02-05 12:54:59 +00:00
..
assignment-error1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
assignment-error2.0 sh: Check readonly status for assignments on regular builtins. 2011-01-01 13:26:18 +00:00
backquote-error1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
backquote-error2.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
bad-binary1.126 sh: Do not try to execute binary files as scripts. 2011-02-05 12:54:59 +00:00
bad-keyword1.0 sh: Fix some tests that used sh instead of ${SH} 2010-12-12 21:18:16 +00:00
bad-parm-exp1.0
bad-parm-exp2.2
bad-parm-exp2.2.stderr
bad-parm-exp3.2
bad-parm-exp3.2.stderr
bad-parm-exp4.2
bad-parm-exp4.2.stderr
bad-parm-exp5.2
bad-parm-exp5.2.stderr
option-error.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redirection-error.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redirection-error2.2 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redirection-error3.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redirection-error4.0 sh: Do not abort on a redirection error if there is no command word. 2010-03-13 22:53:17 +00:00
redirection-error5.0 sh: Add test for redirection error on subshell (should not abort). 2010-03-14 13:51:12 +00:00
redirection-error6.0 sh: Do not abort on a redirection error on a compound command. 2010-03-14 14:24:35 +00:00
redirection-error7.0 sh: Check if dup2 for redirection from/to a file succeeds. 2010-12-31 18:20:17 +00:00