summaryrefslogtreecommitdiff
path: root/src/libposixplz/execvep_internal.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-02-19 10:33:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-02-19 10:33:31 +0000
commitab9c34c0e7b6a6abc8374b0e5f6515c75342239e (patch)
tree7133a2c1ede23fa148b2646edc51ba90882cf968 /src/libposixplz/execvep_internal.c
parentdd478a768bce79bcf6c627310e2ddb473667fecc (diff)
downloadskalibs-ab9c34c0e7b6a6abc8374b0e5f6515c75342239e.tar.xz
execvep_internal: accommodate broken PATHs with ENOTDIR test
Diffstat (limited to 'src/libposixplz/execvep_internal.c')
-rw-r--r--src/libposixplz/execvep_internal.c2
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 ;