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