You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dr...@apache.org on 2019/08/14 20:43:00 UTC
svn commit: r1865188 - /httpd/site/trunk/tools/announce.sh
Author: druggeri
Date: Wed Aug 14 20:43:00 2019
New Revision: 1865188
URL: http://svn.apache.org/viewvc?rev=1865188&view=rev
Log:
Catch an error and inform the operator of what is wrong
Modified:
httpd/site/trunk/tools/announce.sh
Modified: httpd/site/trunk/tools/announce.sh
URL: http://svn.apache.org/viewvc/httpd/site/trunk/tools/announce.sh?rev=1865188&r1=1865187&r2=1865188&view=diff
==============================================================================
--- httpd/site/trunk/tools/announce.sh (original)
+++ httpd/site/trunk/tools/announce.sh Wed Aug 14 20:43:00 2019
@@ -127,7 +127,11 @@ echo "Checking $dir..."
#Prepare the notification contents. From "---" to end of file
contents=`cat "$private_base"/SECURITY/$dir/NOTIFICATION | sed -e '1,/---/ d'`
- cve_description=`echo "$contents" | grep -o 'CVE-[0-9]\+-[0-9]\+: .*[^\.]'`
+
+ if ! cve_description=`echo "$contents" | grep -o 'CVE-[0-9]\+-[0-9]\+: .*[^\.]'`;then
+ echo "ERROR: Could not parse CVE description from NOTIFICATION. Format='CVE-0000-00000: description of vulnerability'"
+ exit 1
+ fi
counter=0
MID="<`perl -e 'print time . ".";@chars=("A".."Z",0..0);print $chars[rand @chars] for 1..8;'`@httpd.apache.org>"