cramfs detection for bigendian

Patch from Olaf Hering <olh@suse.de>.
This commit is contained in:
Kay Sievers
2006-02-13 06:29:30 +01:00
parent 67f69ae17c
commit 42878445d7
+1 -1
View File
@@ -52,7 +52,7 @@ int volume_id_probe_cramfs(struct volume_id *id, uint64_t off)
if (cs == NULL)
return -1;
if (memcmp(cs->magic, "\x45\x3d\xcd\x28", 4) == 0) {
if (memcmp(cs->magic, "\x45\x3d\xcd\x28", 4) == 0 || memcmp(cs->magic, "\x28\xcd\x3d\x45", 4) == 0) {
volume_id_set_label_raw(id, cs->name, 16);
volume_id_set_label_string(id, cs->name, 16);