604e8224f8
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. |
||
---|---|---|
.. | ||
build | ||
debugscripts | ||
diag | ||
kerneldoc | ||
KSE | ||
LibraryReport | ||
regression | ||
sched | ||
test | ||
tools | ||
install.sh | ||
make_libdeps.sh | ||
README |
$FreeBSD$ This directory tree contains tools used for the maintenance and testing of FreeBSD. There is no toplevel Makefile structure since these tools are not meant to be built as part of the standard system, though there may be individual Makefiles in some of the subdirs. Please read the README files in the subdirs for further information.