Bug in applying umask
Posted: May 9th, 2008, 10:28 am
In sabnzbd 0.3.4 assembler.py has the following code:
This sets the umask_file twice. The correct code should be:
In 0.4.0 beta4 the faulty code is in postproc.py
Code: Select all
# Remove X bits for files
umask_file = umask & int('7666', 8)
# Make sure that user R is on
umask_file = umask | int('0400', 8)
Code: Select all
# Remove X bits for files
umask_file = umask & int('7666', 8)
# Make sure that user R is on
umask_file = umask_file | int('0400', 8)