1#!/bin/sh 2# 3# This commit-msg hook tries to guess whether the current commit addresses 4# an existing bug based on a number of keywords in the commit message and 5# reminds the committer of backporting it. 6 7grep -v '^#' "$1" | 8 grep -Eiq 'CVE|vulnerability|fix|panic|bug|Reported-by|Dragonfly-bug' 9if [ $? -eq 0 ]; then 10 echo '' 11 echo 'NOTE: This commit seems to fix an existing issue;' \ 12 'please consider backporting it to the current stable release.' 13 echo '' 14fi 15 16exit 0 17