summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-02-13 06:29:30 +0100
committerKay Sievers <kay.sievers@suse.de>2006-02-13 06:29:30 +0100
commit42878445d73b19096e068e50a0ab86c9fa047c63 (patch)
treef6c4d9e46726164f18bdc110ff3861015cfa814c /extras
parent67f69ae17c2ba2cf54ca40ece1dc42418fb72aaa (diff)
cramfs detection for bigendian
Patch from Olaf Hering <olh@suse.de>.
Diffstat (limited to 'extras')
-rw-r--r--extras/volume_id/libvolume_id/cramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/volume_id/libvolume_id/cramfs.c b/extras/volume_id/libvolume_id/cramfs.c
index 0ad5886b32..bf79407d9d 100644
--- a/extras/volume_id/libvolume_id/cramfs.c
+++ b/extras/volume_id/libvolume_id/cramfs.c
@@ -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);