< prev index next >

src/java.base/unix/native/libjava/childproc.c

Print this page

        

*** 232,242 **** const char *argv[], const char *const envp[]) { if (envp == NULL || (char **) envp == environ) { execvp(file, (char **) argv); ! return; } if (*file == '\0') { errno = ENOENT; return; --- 232,248 ---- const char *argv[], const char *const envp[]) { if (envp == NULL || (char **) envp == environ) { execvp(file, (char **) argv); ! // ENOEXEC indicates that the file header was not recognized. The musl C ! // library does not implement the fallback to /bin/sh for that case, so fall ! // through to the code below which implements that fallback using ! // execve_with_shell_fallback. ! if (errno != ENOEXEC) { ! return; ! } } if (*file == '\0') { errno = ENOENT; return;
< prev index next >