Thread: [Plugin] Directory 2.0
View Single Post
Old 12/11/2013, 04:14 PM   #14
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: Directory 2.0

Quote:
Originally Posted by papedo View Post
Bug report:
{
Chmod in DirCreate didnīt work. Please fix it in next release

if I use:
pawn Code:
DirCreate("Logs/Test",502);
Chmod is 744

But it is fixable by:
pawn Code:
Chmod("Logs/Test",502);
Chmod is OK = 766
}
Oh sorry, for that late response and this bug, i don't know how i missed it, it easy to fix, in source should be

Code:
return (!mkdir(name, params[2]));
instead of
Code:
return (!mkdir(name, S_IREAD | S_IWRITE | S_IRGRP | S_IROTH)); // permission 0644
i don't have linux right now so i can't fix it
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote