summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-01-03 12:52:11 +0100
committerNiels Thykier <niels@thykier.net>2015-01-03 12:52:11 +0100
commitc4c9546acc2a7750e89213996b5c6d13422e1ba4 (patch)
tree4525eeec78fff12f5ea0f0833bd8f0a0a8723a19 /Debian
parent84c0a76c7d528873f1c8e7c800e026bfdfc8def2 (diff)
downloaddebhelper-c4c9546acc2a7750e89213996b5c6d13422e1ba4.tar.gz
Dh_Lib: Fix use of undefined variable
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 57caa3cd..d8704509 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1118,18 +1118,18 @@ sub install_dh_config_file {
$mode = 0644 if not defined($mode);
if (!compat(8) and -x $source) {
- my @sstat = stat($source) || error("cannot stat $file: $!");
- open(my $tfd, '>', $target) || error("cannot open $file: $!");
- chmod($mode, $tfd) || error("cannot chmod $file: $!");
- open(my $sfd, '-|', $source) || error("cannot run $file: $!");
+ my @sstat = stat($source) || error("cannot stat $source: $!");
+ open(my $tfd, '>', $target) || error("cannot open $target: $!");
+ chmod($mode, $tfd) || error("cannot chmod $target: $!");
+ open(my $sfd, '-|', $source) || error("cannot run $source: $!");
while (my $line = <$sfd>) {
print ${tfd} $line;
}
if (!close($sfd)) {
- error("cannot close handle from $file: $!") if $!;
+ error("cannot close handle from $source: $!") if $!;
_error_exitcode($source);
}
- close($tfd) || error("cannot close $file: $!");
+ close($tfd) || error("cannot close $target: $!");
# Set the mtime (and atime) to ensure reproducibility.
utime($sstat[9], $sstat[9], $target);
} else {