summaryrefslogtreecommitdiff
path: root/dh_installmanpages
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2016-05-01 07:28:28 +0000
committerNiels Thykier <niels@thykier.net>2016-05-01 07:43:22 +0000
commite2420e4c81dd303be862a7de4048ed495bd6b316 (patch)
treeed68d0ac9cc5ff6da1d10121bb040a9ead4d06a5 /dh_installmanpages
parentc5b14e3e54d7ca74744f55d48ed2a9d3ec9d0244 (diff)
downloaddebhelper-e2420e4c81dd303be862a7de4048ed495bd6b316.tar.gz
dh_*: Prefer 3-arg open
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installmanpages')
-rwxr-xr-xdh_installmanpages6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_installmanpages b/dh_installmanpages
index d3935009..7f83089a 100755
--- a/dh_installmanpages
+++ b/dh_installmanpages
@@ -110,9 +110,9 @@ sub find_so_man {
}
# Test first line of file for the .so thing.
- open (SOTEST,$_);
- my $l=<SOTEST>;
- close SOTEST;
+ open(my $fd, '<', $_);
+ my $l = <$fd>;
+ close($fd);
if ($l=~m/\.so\s+(.*)/) {
my $solink=$1;
# This test is here to prevent links like ... man8/../man8/foo.8