[issue41375] `mode` security concern

2020-07-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH
YoSTEALTH added the comment: I am closing this as its not a issue anymore... I was trying to solve a problem that has become a core feature! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue41375] `mode` security concern

2020-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is expected behavior on Posix system. See https://pubs.opengroup.org/onlinepubs/9699919799/functions/umask.html What is the problem? -- nosy: +serhiy.storchaka ___ Python tracker

[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH
New submission from YoSTEALTH : import os import stat import os.path def problem(tmp_path): # result: # --- # check: False # mode: 416 # create temp file fd = os.open(tmp_path, os.O_CREAT, 0o660) os.close(fd) # Directory is effected as well # os.mkdir(