Revert "exec: set ev to ENOENT properly"

This reverts commit 6739812ea6.
This commit is contained in:
KO Myung-Hun
2016-12-23 14:43:20 +09:00
parent 6739812ea6
commit de671a4e1c

2
exec.c
View File

@ -1338,7 +1338,7 @@ search_path(const char *name, const char *lpath,
* current directory. For example, PATH=;...;;...; * current directory. For example, PATH=;...;;...;
*/ */
if (!mksh_vdirsep(Xstring(xs, xp))) if (!mksh_vdirsep(Xstring(xs, xp)))
ev = ENOENT; /* nothing */;
else else
#endif #endif
if ((ev = search_access(Xstring(xs, xp), mode)) == 0) { if ((ev = search_access(Xstring(xs, xp), mode)) == 0) {