]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installinfo
r1783: releasing version 4.9.8
[debhelper.git] / dh_installinfo
index 4232229a2d672bf1dd6afdf79d7e658bfd475fe7..78dddc7bfc8cc8f08b05f5e8c841bf84e05ac38c 100755 (executable)
@@ -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:");
                        }
@@ -119,7 +121,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.