mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-23 20:28:03 +03:00
Fixed bug at16027
This commit is contained in:
parent
db293cc451
commit
e1d1802cb9
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user