From: joey Date: Wed, 28 Apr 2004 18:13:35 +0000 (+0000) Subject: r1682: * dh_installinfo: escape '&' characters in INFO-DIR-SECTION when calling X-Git-Tag: 4.2.9^0 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b06b7343ec19e3b5d70f16f074491b679012f8e3;p=debhelper.git r1682: * dh_installinfo: escape '&' characters in INFO-DIR-SECTION when calling sed. Also support \1 etc for completeness. Closes: #246301 --- diff --git a/dh_installinfo b/dh_installinfo index 814c831..78dddc7 100755 --- a/dh_installinfo +++ b/dh_installinfo @@ -105,6 +105,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if ($section ne '') { $section=~s:/:\\/:g; # allow / in section. + $section=~s/\&/\\&/g; # escape sed specials + $section=~s/(\\[0-9])/\\\\$1/g; # more sed specials autoscript($package,"postinst","postinst-info", "s/#SECTION#/$section/g;s:#FILE#:$fn:"); }