Browse Source

Fix regression in detection of troff files. Closes: #949878

Christoph Biedl 9 months ago
parent
commit
700649481a

+ 15 - 0
debian/patches/cherry-pick.FILE5_38-99-g2f3e66e1.fix-escaping-of-periods.patch

@@ -0,0 +1,15 @@
+Subject: Fix escaping of periods
+Origin: FILE5_38-99-g2f3e66e1 <https://github.com/file/file/commit/FILE5_38-99-g2f3e66e1>
+Upstream-Author: Christos Zoulas <christos@zoulas.com>
+Date: Mon Apr 27 01:50:36 2020 +0000
+Bug-Debian: https://bugs.debian.org/949878
+
+--- a/magic/Magdir/rst
++++ b/magic/Magdir/rst
+@@ -7,5 +7,5 @@
+ >&0	regex/256	\^[\=]+$
+ >>&0	search/512	:Author:	ReStructuredText file
+ >>&0	default		x
+->>>&0	regex/512	\^\.\.[A-Za-z]	ReStructuredText file
++>>>&0	regex/512	\^\\.\\.[A-Za-z]	ReStructuredText file
+ !:ext	rst

+ 1 - 0
debian/patches/series

@@ -4,6 +4,7 @@
 cherry-pick.FILE5_38-1-gd955cefc.-td-is-for-ptrdiff-t-not-for-off-t.patch
 increase.number.use.magic.limit.patch
 cherry-pick.FILE5_38-98-g028a1561.pr-93-undo-previous-there-are-dynamic-objects-shared-libraries-for-example.patch
+cherry-pick.FILE5_38-99-g2f3e66e1.fix-escaping-of-periods.patch
 
 # patches that should go upstream
 upstream.disable.att3b.patch