mrc0mmand / rpms / hivex

Forked from rpms/hivex 3 years ago
Clone

Blame SOURCES/0001-Win-Hivex-Regedit-Accept-CRLF-line-endings.patch

ae2b02
From 564a923a91d042e24e9259d86f69e0061f28ef4f Mon Sep 17 00:00:00 2001
ae2b02
From: Vladimir Panteleev <git@thecybershadow.net>
ae2b02
Date: Thu, 16 Jan 2020 12:11:20 +0000
ae2b02
Subject: [PATCH 1/2] Win::Hivex::Regedit: Accept CRLF line endings
ae2b02
ae2b02
---
ae2b02
 perl/lib/Win/Hivex/Regedit.pm | 1 +
ae2b02
 1 file changed, 1 insertion(+)
ae2b02
ae2b02
diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm
ae2b02
index 34426f1..2b17036 100644
ae2b02
--- a/perl/lib/Win/Hivex/Regedit.pm
ae2b02
+++ b/perl/lib/Win/Hivex/Regedit.pm
ae2b02
@@ -144,6 +144,7 @@ sub reg_import
ae2b02
         # this is fairly common in pasted regedit files.
ae2b02
         $lineno++;
ae2b02
         chomp;
ae2b02
+        s/\r$//;
ae2b02
         if (s/\\\s*$//) {
ae2b02
             $_ .= <$fh>;
ae2b02
             redo unless eof ($fh);
ae2b02
-- 
ae2b02
2.24.1
ae2b02