#1032594 apt: hard-coded directory permissions 0755

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Philipp Hahn
Date:
2023-03-09 18:36:04 UTC
Severity:
normal
#1032594#5
Date:
2023-03-09 18:27:42 UTC
From:
To:
https://salsa.debian.org/apt-team/apt/-/blob/main/apt-pkg/contrib/fileutl.cc#L398

it would be good to make this configurabel with something similar to
`FileMode`.

We are using `apt-ftpachive` in a shared ennvironment. We are using
`umask 0002` to give group-membery rwx-access by default.
Our top-level directory has mode 02775 and group "build", so that every
path created below it is again owned by that group and has the SGID-bit
set.

But directories and files created by `apt-ftparchive` lack
write-permission for the group:
- Permissions for files can be configured via `FileMode`, which defaults
  to 0644.
- But there is nothing for directories, which is hard-coded to 0755.