mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
Sanitize file permissions for downloaded files.
Downloaded files may not have read permission for everybody. This doesn't seem to be a problem since the user as well as root should be able to read them anyhow. This is true unless the directory where the cache resides is mounted over nfs with root_squash. Signed-off-by: Egbert Eich <eich@suse.de>
This commit is contained in:
parent
931d216ea0
commit
db2e538efd
@ -171,6 +171,7 @@ class Fetcher:
|
||||
pac_obj.filename = canonname
|
||||
pac_obj.fullfilename = fullfilename
|
||||
shutil.move(tmpfile, fullfilename)
|
||||
os.chmod(fullfilename, 0644)
|
||||
|
||||
def dirSetup(self, pac):
|
||||
dir = os.path.join(self.cachedir, pac.localdir)
|
||||
|
Loading…
Reference in New Issue
Block a user