jerpelea opened a new pull request, #21221: URL: https://github.com/apache/nuttx/pull/21221
## Summary exec() of a file that is shorter than an ELF header, for example a short shell script without #!, failed with ENODATA: the read of the header reached the end of the file. POSIX says that exec() fails with ENOEXEC when the file has an unrecognized format, and a shell runs such a file itself only on ENOEXEC. A shell printed "No data available" instead of running the script. This PR returns ENOEXEC when the file ends before the ELF header, as for any other file that is not an ELF file. The first commit fixes the old nxstyle errors in elf_init.c, with no code change. ## Impact RELEASE ## Testing Ci -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
