I want to install a few binary files, they have the -rwx------ permissions in the source directory. After the installation they are all
-rwxrw--wt 1 admin administrators 615952 2022-10-17 21:48 ...
The files are already broken in the data.tar.gz. The problem is a decimal.octal mismatch in cook.py. Sorry, I don't have a branch ready to publish the PR, but this is a one-liner.
--- python/qbuild/cook.py.orig 2022-10-17 23:17:43.135593421 +0200
+++ python/qbuild/cook.py 2022-10-17 23:17:55.591464624 +0200
@@ -307,7 +307,7 @@
warning('{} has setgid attribute'
.format(pjoin(root[len(data_root):], f)))
if fixperm:
- chmod(pjoin(root, f), fstat.st_mode | 755)
+ chmod(pjoin(root, f), fstat.st_mode | 0755)
def signature(self):
debug(self._label + 'signature')