Fixed bug at16027

This commit is contained in:
David Anderson 2005-07-14 13:36:22 +00:00
parent db293cc451
commit e1d1802cb9

View File

@ -2895,11 +2895,12 @@ static cell AMX_NATIVE_CALL amx_mkdir(AMX *amx, cell *params)
{
int len = 0;
char *path = get_amxstring(amx, params[1], 0, len);
char *realpath = build_pathname("%s", path);
#ifdef __linux__
return mkdir(path, 0700);
return mkdir(realpath, 0700);
#else
return mkdir(path);
return mkdir(realpath);
#endif
}