1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

The access to caching files has been fixed

This commit is contained in:
Valery Sinelnikov 2023-05-26 14:51:08 +04:00
parent 8cdc84aef6
commit a4db4d9cd0

View File

@ -75,6 +75,7 @@ class fs_file_cache:
df.write(data)
df.close()
os.rename(tmpfile, destfile)
os.chmod(destfile, 0o644)
except:
tmppath = Path(tmpfile)
if tmppath.exists():