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:
parent
a041295dae
commit
25bb7dcec4
4
os2.c
4
os2.c
@ -284,10 +284,6 @@ access_stat_ex(int (*fn)(), const char *name, void *arg)
|
|||||||
const char **x_suffix;
|
const char **x_suffix;
|
||||||
int rc = -1;
|
int rc = -1;
|
||||||
|
|
||||||
/* Have an extension ? */
|
|
||||||
if (_getext(name))
|
|
||||||
return fn(name, arg);
|
|
||||||
|
|
||||||
/* Otherwise, try to append executable suffixes */
|
/* Otherwise, try to append executable suffixes */
|
||||||
x_name = alloc(strlen(name) + MAX_X_SUFFIX_LEN + 1, ATEMP);
|
x_name = alloc(strlen(name) + MAX_X_SUFFIX_LEN + 1, ATEMP);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user