Closed runfalk closed 11 years ago
This appears to be a limitation of twistd. If a umask is not explicitly requested, it defaults to setting it to 077. If I can't think of something better, I'll have the launcher get the current umask and supply it as an option to twistd.
let me know if 43adb0d fixes your issue.
I forgot to mention, setting the umask to 022 like I do in server_start does "fall through" to twistd i.e. it respects that umask setting. I don't know if server_start is being called from within twistd though. I would be happy with either it respecting my umask or me being able to specify it in the properties file, or maybe both.
I missed your latest reply. The fix works splendidly. Thank you very much!
When logging in and out from my server the permissions for the dat files in world/players/ gets odd permissions. My user's umask is 0022, but the files become like this:
When I print the umask inside _process.py:Process.serverstart like this:
It prints 077, without the leading zero, meaning it somehow looses the umask along the way. This is problematic as I need all the files to be world readable.