Skip to content

Commit ca177ab

Browse files
committed
Merge pull request #126 from dfries/master
limit create file permissions
2 parents 678fdd1 + f22b62c commit ca177ab

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Version 0.14
1313
- Add MacPorts' path to the default openssl search path (#101)
1414
- HashIndex improvements, eliminates unnecessary IO on low memory systems.
1515
- Fix "Number of files" output for attic info. (#124)
16+
- limit create file permissions so files aren't read while restoring
1617

1718
Version 0.13
1819
------------

attic/archiver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def _process(self, archive, cache, excludes, exclude_caches, skip_inodes, path,
186186

187187
def do_extract(self, args):
188188
"""Extract archive contents"""
189+
# be restrictive when restoring files, restore permissions later
190+
os.umask(0o077)
189191
repository = self.open_repository(args.archive)
190192
manifest, key = Manifest.load(repository)
191193
archive = Archive(repository, key, manifest, args.archive.archive,

0 commit comments

Comments
 (0)