This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=77756084e9e50d7a8578259ee56e64dcf4f6f9a0 commit 77756084e9e50d7a8578259ee56e64dcf4f6f9a0 Author: Guillem Jover <[email protected]> AuthorDate: Mon Mar 28 00:33:17 2022 +0200 dpkg-fsys-usrunmess: Explicitly set user/group and mode for created dirs We should explicitly set the user/group and mode for the newly created directories, to make sure they end up with the expected values, instead of assuming a good environment (umask and user/group). We will still be setting a known umask in a subsequent commit as a defensive measure. Closes: #1008478 --- scripts/dpkg-fsys-usrunmess.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/dpkg-fsys-usrunmess.pl b/scripts/dpkg-fsys-usrunmess.pl index b39e18118..869d80e5e 100755 --- a/scripts/dpkg-fsys-usrunmess.pl +++ b/scripts/dpkg-fsys-usrunmess.pl @@ -202,6 +202,10 @@ foreach my $dir (@aliased_dirs) { debug("creating shadow dir = $sroot$dir"); mkdir "$sroot$dir" or sysfatal("cannot create directory $sroot$dir"); + chmod 0755, "$sroot$dir" + or sysfatal("cannot chmod 0755 $sroot$dir"); + chown 0, 0, "$sroot$dir" + or sysfatal("cannot chown 0 0 $sroot$dir"); push @relabel, "$sroot$dir"; } -- Dpkg.Org's dpkg

