From 558b0fb4eaa4aebc823022b3e1d560da3faad658 Mon Sep 17 00:00:00 2001 From: Iku Iwasa Date: Sat, 2 Aug 2014 22:02:23 +0900 Subject: Retry process execution in case of ENOTDIR If `PATH` environment variable contains non directory component, `__hsunix_execvpe()` failed by `ENOTDIR`. This fixes #11 for all platforms. --- cbits/execvpe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cbits/execvpe.c') diff --git a/cbits/execvpe.c b/cbits/execvpe.c index 8c9d52d..b4f9472 100644 --- a/cbits/execvpe.c +++ b/cbits/execvpe.c @@ -129,6 +129,7 @@ __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]) case EACCES: eacces = 1; break; + case ENOTDIR: case ENOENT: break; case ENOEXEC: -- cgit v1.2.3