themill / wiz

Environment management framework
GNU Lesser General Public License v3.0
45 stars 4 forks source link

Incorrect permission on log folder #66

Closed buddly27 closed 3 years ago

buddly27 commented 3 years ago

By default, the /tmp/wiz log folder is created with mode 0o777 (https://docs.python.org/3/library/os.html#os.makedirs), but depending on the umask, it can mess up with the permissions:

> os.umask(0o0022)
> os.makedirs("/tmp/test")
> oct(os.stat("/tmp/test").st_mode)
'0o40755'

It would be safer to always add a os.chmod(0o777) for safety