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=b29c959c5b9f271b8eb1873c49cf7f5dbf2bfda0

commit b29c959c5b9f271b8eb1873c49cf7f5dbf2bfda0 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Mar 27 13:09:35 2022 +0200

    dpkg-fsys-usrunmess: Set a known umask before starting
    
    Even though we should already be explicitly setting user/group and mode
    for created directories, we should in addition set a known umask we can
    rely on, at least for defensive purposes.
    
    Ref: #1008478
---
 scripts/dpkg-fsys-usrunmess.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/dpkg-fsys-usrunmess.pl b/scripts/dpkg-fsys-usrunmess.pl
index 869d80e5e..d11017101 100755
--- a/scripts/dpkg-fsys-usrunmess.pl
+++ b/scripts/dpkg-fsys-usrunmess.pl
@@ -54,6 +54,9 @@ my @options_spec = (
     GetOptions(@options_spec);
 }
 
+# Set a known umask.
+umask 0022;
+
 my @aliased_dirs;
 
 #

-- 
Dpkg.Org's dpkg

Reply via email to