]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
support files which have CR LF ending like those in win32utils
authorMark Andrews <marka@isc.org>
Fri, 12 Apr 2019 04:09:01 +0000 (14:09 +1000)
committerMark Andrews <marka@isc.org>
Fri, 12 Apr 2019 04:32:08 +0000 (14:32 +1000)
(cherry picked from commit e76936fd85d2b05058f7de11ce1ca9e044b59c04)

util/update_copyrights

index a3a0d8552594ff0d69c5ac0a873d0fb2384d8a36..bc9ab184029db331480bb95cd51801caf8248972 100644 (file)
@@ -231,7 +231,7 @@ foreach $file (keys %file_types) {
 
         ($nonspaceprefix = $prefix) =~ s/\s+$//;
 
-        open(SOURCE, "<$file") || die "can't open $file: $!";
+        open(SOURCE, "<:crlf", $file) || die "can't open $file: $!";
         $_ = <SOURCE>;
         if ($type eq "YACC") {
                 unless ($_ eq "%{\n") {