exec: set ev to ENOENT properly
modified: exec.c
This commit is contained in:
2
exec.c
2
exec.c
@ -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)))
|
||||||
/* nothing */;
|
ev = ENOENT;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if ((ev = search_access(Xstring(xs, xp), mode)) == 0) {
|
if ((ev = search_access(Xstring(xs, xp), mode)) == 0) {
|
||||||
|
Reference in New Issue
Block a user