diff options
author | Iku Iwasa <iku.iwasa@gmail.com> | 2014-08-02 22:02:23 +0900 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-12-06 15:55:27 +0100 |
commit | 558b0fb4eaa4aebc823022b3e1d560da3faad658 (patch) | |
tree | c6d349ec150b820d5080952c19f3dbd5fb27ecc0 /cbits | |
parent | f24ba78f68b2cbc4f4afadc8dd60fc2935357255 (diff) |
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.
Diffstat (limited to 'cbits')
-rw-r--r-- | cbits/execvpe.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |