From de671a4e1c47b1445bb4b99229872d874f59afd4 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Fri, 23 Dec 2016 14:43:20 +0900 Subject: [PATCH] Revert "exec: set ev to ENOENT properly" This reverts commit 6739812ea684e338a8df7378bdd16ab7d803acdc. --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index c997731..0c9ca77 100644 --- a/exec.c +++ b/exec.c @@ -1338,7 +1338,7 @@ search_path(const char *name, const char *lpath, * current directory. For example, PATH=;...;;...; */ if (!mksh_vdirsep(Xstring(xs, xp))) - ev = ENOENT; + /* nothing */; else #endif if ((ev = search_access(Xstring(xs, xp), mode)) == 0) {