Fix default Maildir File permissions.
open() and os.open() lead to different file permissions by default, and while we have not changed the os.open that had been used, some code changes led to these permissions slipping through. Fix this by setting the permissions explicitly to 0666 (minus the users umask). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -238,7 +238,7 @@ class MaildirFolder(BaseFolder):
|
||||
# open file and write it out
|
||||
try:
|
||||
fd = os.open(os.path.join(tmpdir, messagename),
|
||||
os.O_EXCL|os.O_CREAT|os.O_WRONLY)
|
||||
os.O_EXCL|os.O_CREAT|os.O_WRONLY, 0666)
|
||||
except OSError, e:
|
||||
if e.errno == 17:
|
||||
#FILE EXISTS ALREADY
|
||||
|
Reference in New Issue
Block a user