parent
b4c29ccf61
commit
2fe205958c
@ -0,0 +1,23 @@
|
||||
From 85b7ab83257b3191a1a7ca044589a092bcef2bb3 Mon Sep 17 00:00:00 2001
|
||||
From: Christos Zoulas <christos@zoulas.com>
|
||||
Date: Thu, 25 Jun 2020 16:52:48 +0000
|
||||
Subject: [PATCH] Include # (alternate format) to the list of uninteresting
|
||||
formats Reported by Werner Fink
|
||||
|
||||
---
|
||||
src/funcs.c | 2 ++--
|
||||
1 file changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/funcs.c b/src/funcs.c
|
||||
index 299b8f022..ecbfa28c5 100644
|
||||
--- a/src/funcs.c
|
||||
+++ b/src/funcs.c
|
||||
@@ -93,7 +93,7 @@ file_checkfmt(char *msg, size_t mlen, const char *fmt)
|
||||
if (*++p == '%')
|
||||
continue;
|
||||
// Skip uninteresting.
|
||||
- while (strchr("0.'+- ", *p) != NULL)
|
||||
+ while (strchr("#0.'+- ", *p) != NULL)
|
||||
p++;
|
||||
if (*p == '*') {
|
||||
if (msg)
|
@ -0,0 +1,31 @@
|
||||
From ea6256a346adbd65ac1d646d716e7b51ea0b9232 Mon Sep 17 00:00:00 2001
|
||||
From: Ville-Pekka Vainio <vpvainio@iki.fi>
|
||||
Date: Fri, 9 Jun 2023 12:00:27 +0300
|
||||
Subject: [PATCH] FlateDecode does not mean password protected
|
||||
|
||||
Have the patch apply against file-5.39 in EL9
|
||||
Upstream bug: https://bugs.astron.com/view.php?id=275
|
||||
Upstream commit: https://github.com/file/file/commit/239852073ad3a5ba5cf62b21e95565f122869f6a
|
||||
Original author: pwinckles
|
||||
|
||||
Signed-off-by: Ville-Pekka Vainio <vpvainio@iki.fi>
|
||||
---
|
||||
magic/Magdir/pdf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/magic/Magdir/pdf b/magic/Magdir/pdf
|
||||
index e386f454..7aa7a24d 100644
|
||||
--- a/magic/Magdir/pdf
|
||||
+++ b/magic/Magdir/pdf
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
0 name pdf
|
||||
->8 search/512 /Filter/FlateDecode/ (password protected)
|
||||
+>8 search/512 /Filter/FlateDecode/ (zip deflate encoded)
|
||||
|
||||
0 string %PDF- PDF document
|
||||
!:mime application/pdf
|
||||
--
|
||||
2.40.1
|
||||
|
Loading…
Reference in new issue