diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-19 10:33:31 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-19 10:33:31 +0000 |
commit | ab9c34c0e7b6a6abc8374b0e5f6515c75342239e (patch) | |
tree | 7133a2c1ede23fa148b2646edc51ba90882cf968 /src/libposixplz | |
parent | dd478a768bce79bcf6c627310e2ddb473667fecc (diff) | |
download | skalibs-ab9c34c0e7b6a6abc8374b0e5f6515c75342239e.tar.xz |
execvep_internal: accommodate broken PATHs with ENOTDIR test
Diffstat (limited to 'src/libposixplz')
-rw-r--r-- | src/libposixplz/execvep_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libposixplz/execvep_internal.c b/src/libposixplz/execvep_internal.c index 17858f0..4395e23 100644 --- a/src/libposixplz/execvep_internal.c +++ b/src/libposixplz/execvep_internal.c @@ -27,7 +27,7 @@ void execvep_internal (char const *file, char const *const *argv, char const *co if (errno != ENOENT) { savederrno = errno ; - if ((errno != EACCES) && (errno != EPERM) && (errno != EISDIR)) break ; + if ((errno != EACCES) && (errno != EPERM) && (errno != EISDIR) && (errno != ENOTDIR)) break ; } } path += split+1 ; pathlen -= split+1 ; |