Blame SOURCES/file-5.37-jffs-magic.patch

7d4385
From 432267e707aca36bec55704fd404fa572e2c4b45 Mon Sep 17 00:00:00 2001
7d4385
From: Christos Zoulas <christos@zoulas.com>
7d4385
Date: Fri, 15 Nov 2019 23:49:38 +0000
7d4385
Subject: [PATCH] fix JFFS2 (the old magic was just hex encoded 0x1984 which is
7d4385
 wrong (Kamil Dudka)
7d4385
7d4385
Upstream-commit: 5ad78c726bb03e0fbdb6d237ef2b13e51968ffea
7d4385
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
7d4385
---
7d4385
 magic/Magdir/filesystems | 6 ++----
7d4385
 1 file changed, 2 insertions(+), 4 deletions(-)
7d4385
7d4385
diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems
7d4385
index 1920e56..da5c580 100644
7d4385
--- a/magic/Magdir/filesystems
7d4385
+++ b/magic/Magdir/filesystems
7d4385
@@ -2057,10 +2057,6 @@
7d4385
 >0x10040	lelong	2		yura hash
7d4385
 >0x10040	lelong	3		r5 hash
7d4385
 
7d4385
-# JFFS - russell@coker.com.au
7d4385
-0	lelong	0x34383931	Linux Journalled Flash File system, little endian
7d4385
-0	belong	0x34383931	Linux Journalled Flash File system, big endian
7d4385
-
7d4385
 # EST flat binary format (which isn't, but anyway)
7d4385
 # From: Mark Brown <broonie@sirena.org.uk>
7d4385
 0	string	ESTFBINR	EST flat binary
7d4385
@@ -2144,7 +2140,9 @@
7d4385
 
7d4385
 # JFFS2 file system
7d4385
 0	leshort	0x1984		Linux old jffs2 filesystem data little endian
7d4385
+0	beshort	0x1984		Linux old jffs2 filesystem data big endian
7d4385
 0	leshort	0x1985		Linux jffs2 filesystem data little endian
7d4385
+0	beshort	0x1985		Linux jffs2 filesystem data big endian
7d4385
 
7d4385
 # Squashfs
7d4385
 0	string	sqsh	Squashfs filesystem, big endian,
7d4385
-- 
7d4385
2.20.1
7d4385