projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f69ae
)
cramfs detection for bigendian
author
Kay Sievers
<kay.sievers@suse.de>
Mon, 13 Feb 2006 05:29:30 +0000
(06:29 +0100)
committer
Kay Sievers
<kay.sievers@suse.de>
Mon, 13 Feb 2006 05:29:30 +0000
(06:29 +0100)
Patch from Olaf Hering <olh@suse.de>.
extras/volume_id/libvolume_id/cramfs.c
patch
|
blob
|
history
diff --git
a/extras/volume_id/libvolume_id/cramfs.c
b/extras/volume_id/libvolume_id/cramfs.c
index
0ad5886
..
bf79407
100644
(file)
--- 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);