summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-openstackclient
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2025-05-08 12:13:50 +0200
committerr-vdp <ramses@well-founded.dev>2025-05-08 12:13:50 +0200
commita9c75e76895641510338124331fc837cefac1872 (patch)
treeed5c64f291cb456b0ffa52eceaa1316161c3f3bf /pkgs/development/python-modules/python-openstackclient
parentcd6c09ebc5d9da1139903c9b8581b48d774175fe (diff)
make-initrd-ng: fix file permissions
We want to strip the write bit from files after we copied them. XOR is not the right operator for this, since if the bit is 0 in both the actual permissions and the mask, then the result will be a 1. So in practice, we were assigning write permissions for group and others to all files and we were only stripping the write permissions of the owner (since the owner had write permissions, and so the result of the XOR is 0). The correct thing to do is to AND with the maximum permissions that we want to maintain (which is the inverse of what we want to strip), so that only those bits are preserved and the others are always set to 0.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
0 files changed, 0 insertions, 0 deletions