From ab9c34c0e7b6a6abc8374b0e5f6515c75342239e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 19 Feb 2020 10:33:31 +0000 Subject: execvep_internal: accommodate broken PATHs with ENOTDIR test --- src/libposixplz/execvep_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3