skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit ab9c34c0e7b6a6abc8374b0e5f6515c75342239e
parent dd478a768bce79bcf6c627310e2ddb473667fecc
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Wed, 19 Feb 2020 10:33:31 +0000

 execvep_internal: accommodate broken PATHs with ENOTDIR test

Diffstat:
Msrc/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 @@ -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 ;