Consider executable extensions in case of some test commands on OS/2

-r, -w, -x, -a, -e, -f.
This commit is contained in:
KO Myung-Hun
2015-05-11 13:43:56 +09:00
parent fdd0831a58
commit a03cf65602
4 changed files with 24 additions and 4 deletions

7
os2.c
View File

@@ -108,6 +108,13 @@ access_ex(int (*fn)(const char *, int), const char *name, int mode)
return access_stat_ex(fn, name, (void *)mode);
}
/* stat() version */
int
stat_ex(const char *name, struct stat *buffer)
{
return access_stat_ex(stat, name, buffer);
}
static int
test_exec_exist(const char *name, char *real_name)
{