Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Incorrect permissions of installed files, dec/oct chmod mismatch #14

@numo68

Description

@numo68

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions