if ($dh{EXCLUDE}) {
$dh{EXCLUDE_FIND}='';
foreach (@{$dh{EXCLUDE}}) {
- $dh{EXCLUDE_FIND}.="-regex ".escape_shell(".*$_.*")." -or ";
+ my $x=$_;
+ $x=escape_shell($x);
+ $x=~s/\./\\\\./g;
+ $dh{EXCLUDE_FIND}.="-regex .\\*$x.\\* -or ";
}
$dh{EXCLUDE_FIND}=~s/ -or $//;
}
+debhelper (4.0.8) unstable; urgency=low
+
+ * Don't leak regex characters from -X when generating DH_EXCLUDE_FIND.
+
+ -- Joey Hess <joeyh@debian.org> Wed, 22 May 2002 21:03:38 -0400
+
debhelper (4.0.7) unstable; urgency=low
* dh_strip: If a file is an ELF shared binary, does not have a .so.* in its