[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#33742: dpkg-dev: fix for #17376



Package: dpkg-dev
Version: 1.4.0.31

The following patch for controllib.pl should fix the bug:

------------------------------------------------------------------------
--- /root/controllib.pl	Fri Oct 23 00:03:57 1998
+++ controllib.pl	Tue Feb 23 08:44:48 1999
@@ -1,3 +1,4 @@
+use POSIX qw(:errno_h errno);
 
 $parsechangelog= 'dpkg-parsechangelog';
 
@@ -101,7 +102,7 @@
                 $substvar{$1}= $';
             }
             close(SV);
-        } elsif ($! !~ m/no such file or directory/i) {
+        } elsif (POSIX::errno() != ENOENT) {
             &error("unable to open substvars file $varlistfile: $!");
         }
     }
------------------------------------------------------------------------

-- System Information
Debian Release: 2.1
Kernel Version: Linux ppip01 2.0.34 #1 Mon Jul 27 15:43:31 CEST 1998 i686 unknown

Versions of the packages dpkg-dev depends on:
hi  perl            5.004.04-6     Larry Wall's Practical Extracting and Report


Reply to: