]> 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:09:01 +0000 (14:09 +1000)
util/update_copyrights

index 299ce9f62e59d14e604b73b7719ccb15d851b5f2..fd86d0026bcd3f59fc2587cc44f3fd487cc04b18 100644 (file)
@@ -227,7 +227,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") {