[Git][security-tracker-team/security-tracker][master] bin/sign-advisory.sh: Respect file permissions of the source file

Arnaud Rebillout (@arnaudr) arnaudr at debian.org
Thu Aug 13 06:11:44 BST 2026



Arnaud Rebillout pushed to branch master at Debian Security Tracker / security-tracker


Commits:
743fa7be by Arnaud Rebillout at 2026-08-13T12:11:21+07:00
bin/sign-advisory.sh: Respect file permissions of the source file

- - - - -


1 changed file:

- bin/sign-advisory.sh


Changes:

=====================================
bin/sign-advisory.sh
=====================================
@@ -49,5 +49,9 @@ signed_dsa=${dsa}.signed
 # figure out the offset for actual DSA text, after headers
 n=$(awk '/^$/ {print NR+1 ; exit}' $dsa)
 
+# create empty destination file with same permissions as the source
+:> $signed_dsa
+chmod --reference=$dsa $signed_dsa
+
 # keep headers, and sign the content
 { head -n $(($n - 1)) $dsa ; tail -n +$n $dsa | gpg --clearsign ; } >| $signed_dsa



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/743fa7be9be5a0f6d5bd4dab6915ac83bfec4524

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/743fa7be9be5a0f6d5bd4dab6915ac83bfec4524
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20260813/2cb1e93e/attachment-0001.htm>


More information about the debian-security-tracker-commits mailing list