]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1894: * dh_installman: die with an error if a man page read for so lines fails
authorjoeyh <joeyh>
Wed, 29 Mar 2006 00:38:07 +0000 (00:38 +0000)
committerjoeyh <joeyh>
Wed, 29 Mar 2006 00:38:07 +0000 (00:38 +0000)
Closes: #359020
debian/changelog
dh_installman

index 0ba88a8ed0b3c4c5e4541c9496d06085fe4ef622..2c1440464c42cf638769e21123eace689f63f637 100644 (file)
@@ -3,6 +3,8 @@ debhelper (5.0.27) UNRELEASED; urgency=low
   [ Joey Hess ]
   * Typo. Closes: #358904
   * dh_install: swap two paras in man page for clarity. Closes: #359182
+  * dh_installman: die with an error if a man page read for so lines fails
+    Closes: #359020
 
   [ Valery Perrin ]
   * Update pot file and french translation with recent changes in
index 6544eae46b68b79401e53babc57fecfb17724028..e8ed27da51ca909227da2164742c9d705ac810dc 100755 (executable)
@@ -205,6 +205,11 @@ sub find_so_man {
        }
        my $l=<SOTEST>;
        close SOTEST;
+
+       if (! defined $l) {
+               error("failed to read $_");
+       }
+       
        if ($l=~m/\.so\s+(.*)\s*/) {
                my $solink=$1;
                # This test is here to prevent links like ... man8/../man8/foo.8