From b06b7343ec19e3b5d70f16f074491b679012f8e3 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 28 Apr 2004 18:13:35 +0000 Subject: r1682: * dh_installinfo: escape '&' characters in INFO-DIR-SECTION when calling sed. Also support \1 etc for completeness. Closes: #246301 --- dh_installinfo | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dh_installinfo') diff --git a/dh_installinfo b/dh_installinfo index 814c831b..78dddc7b 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:"); } -- cgit v1.2.3