Revert "exec: search commands in the current directory first on OS/2"

This reverts commit 89d461dd83.

To avoid the incompatibility with Unix shell scripts not expecting that
a current directory is searched first and the security problems, let a
user prepend "." to $PATH explicitly if needed.

    modified:   exec.c
This commit is contained in:
KO Myung-Hun 2016-12-22 08:47:25 +09:00
parent 9f84c65e76
commit eb43e28996
1 changed files with 0 additions and 6 deletions

6
exec.c
View File

@ -1315,12 +1315,6 @@ search_path(const char *name, const char *lpath,
goto search_path_err;
}
#ifdef __OS2__
/* look in a current directory first (OS/2 style) */
if (search_access(name, mode) == 0)
goto search_path_ok;
#endif
namelen = strlen(name) + 1;
Xinit(xs, xp, 128, ATEMP);