aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/commit_prep.pl3
-rw-r--r--CVSROOT/exclude4
2 files changed, 3 insertions, 4 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index 2196b6cf44c8..b286d6d6ff77 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -114,8 +114,7 @@ sub check_version {
chop;
$line = $_;
- $ind = index($path, $line);
- if ($ind >= 0) {
+ if ($path =~ /$line/) {
close(EX);
return(0);
}
diff --git a/CVSROOT/exclude b/CVSROOT/exclude
index ade1c32b00b3..c22a31959230 100644
--- a/CVSROOT/exclude
+++ b/CVSROOT/exclude
@@ -1,4 +1,4 @@
# Exclusions list for header checking.
# $FreeBSD$
-src/sys/boot/common/help.common
-FREEBSD-Xlist
+^src/sys/boot/common/help.common
+^src/contrib/.*/FREEBSD-Xlist