commit: d10bafb2c84be84ee47a2204938df4b3b9f238c0
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 16:39:38 2016 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 16:41:56 2016 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d10bafb2
cache.fs_template: set 0o644 defaut perms
Fixes 5652bc88514b ("flat_hash: use mkstemp in _setitem)
X-Gentoo-Bug: 594358
X-Gentoo-Bug-URL: https://bugs.gentoo.org/594358
pym/portage/cache/fs_template.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py
index fa44abc..e3c3c12 100644
--- a/pym/portage/cache/fs_template.py
+++ b/pym/portage/cache/fs_template.py
@@ -24,7 +24,7 @@ class FsBased(template.database):
def __init__(self, *args, **config):
- for x, y in (("gid", -1), ("perms", -1)):
+ for x, y in (("gid", -1), ("perms", 0o644)):
if x in config:
# Since Python 3.4, chown requires int type (no
proxies).
setattr(self, "_" + x, int(config[x]))