exec: fix that executing a file with multiple dots fails on OS/2

For example, [a.b.exe] cannot be executed with [a.b].

    modified:   exec.c
This commit is contained in:
KO Myung-Hun 2015-06-11 16:10:29 +09:00
parent a041295dae
commit 25bb7dcec4
1 changed files with 0 additions and 4 deletions

4
os2.c
View File

@ -284,10 +284,6 @@ access_stat_ex(int (*fn)(), const char *name, void *arg)
const char **x_suffix;
int rc = -1;
/* Have an extension ? */
if (_getext(name))
return fn(name, arg);
/* Otherwise, try to append executable suffixes */
x_name = alloc(strlen(name) + MAX_X_SUFFIX_LEN + 1, ATEMP);