[dak/master] lock_package: use sensible permissions for lock file
There is no need for the file to be executable. It looks not nice in
the output of `ls -l`.
---
dak/process_new.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dak/process_new.py b/dak/process_new.py
index 6a476c23..fe38266b 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -677,7 +677,7 @@ def lock_package(package):
path = os.path.join(cnf.get("Process-New::LockDir", cnf['Dir::Lock']), package)
try:
- fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDONLY)
+ fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDONLY, mode=0o644)
except OSError as e:
if e.errno == errno.EEXIST or e.errno == errno.EACCES:
user = pwd.getpwuid(os.stat(path)[stat.ST_UID])[4].split(',')[0].replace('.', '')
--
2.11.0
Reply to: