[Secure-testing-commits] r45418 - bin

Salvatore Bonaccorso carnil at moszumanska.debian.org
Tue Oct 18 11:13:09 UTC 2016


Author: carnil
Date: 2016-10-18 11:13:08 +0000 (Tue, 18 Oct 2016)
New Revision: 45418

Modified:
   bin/sign-advisory.sh
Log:
Improve sign-advisory.sh to allow DLA signing

Thanks: Brian May <bam at debian.org>

Modified: bin/sign-advisory.sh
===================================================================
--- bin/sign-advisory.sh	2016-10-18 11:07:56 UTC (rev 45417)
+++ bin/sign-advisory.sh	2016-10-18 11:13:08 UTC (rev 45418)
@@ -47,7 +47,7 @@
 signed_dsa=${dsa}.signed
 
 # figure out the offset for actual DSA text, after headers
-n=$(awk '/^-+/ {print NR ; exit}' $dsa)
+n=$(awk '/^$/ {print NR+1 ; exit}' $dsa)
 
 # keep headers, and sign the content
 { head -n $(($n - 1)) $dsa ; tail -n +$n $dsa | gpg --clearsign ; } >| $signed_dsa




More information about the Secure-testing-commits mailing list