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
1 changed files with 1 additions and 1 deletions

2
exec.c
View File

@ -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) {