From ef75dbead770148a80b0910ace9eec65dc2674be Mon Sep 17 00:00:00 2001 From: Iku Iwasa Date: Sat, 2 Aug 2014 22:02:23 +0900 Subject: [PATCH] Retry process execution in case of ENOTDIR If PATH environment variable contains non directory component, execvpe failed by ENOTDIR. --- cbits/execvpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cbits/execvpe.c b/cbits/execvpe.c index 6ce1e9d8..e259fa48 100644 --- a/cbits/execvpe.c +++ b/cbits/execvpe.c @@ -120,6 +120,7 @@ execvpe(char *name, char *const argv[], char **envp) case EACCES: eacces = 1; break; + case ENOTDIR: case ENOENT: break; case ENOEXEC: