Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The behavior your are likely thinking of (execvp on a file without a shebang) is implemented in libc.


No. As someone else mentioned, the kernel hardcodes /bin/sh as a last resort: https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: