From 4ee87e55597c8702203c1fa5361e5cf2e0124400 Mon Sep 17 00:00:00 2001 From: joeyh Date: Wed, 29 Mar 2006 00:38:07 +0000 Subject: r1894: * dh_installman: die with an error if a man page read for so lines fails Closes: #359020 --- dh_installman | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dh_installman') diff --git a/dh_installman b/dh_installman index 6544eae4..e8ed27da 100755 --- a/dh_installman +++ b/dh_installman @@ -205,6 +205,11 @@ sub find_so_man { } my $l=; 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 -- cgit v1.2.3