projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
264f373
)
volume_id: fix ntfs attribute search
author
Oliver Metz
<oliver.metz@gmx.de>
Wed, 8 May 2013 18:21:29 +0000
(20:21 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 9 May 2013 05:45:51 +0000
(07:45 +0200)
len is declared as uint32_t but le16_to_cpu macro is used
Signed-off-by: Oliver Metz <oliver.metz@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/volume_id/ntfs.c
patch
|
blob
|
history
diff --git
a/util-linux/volume_id/ntfs.c
b/util-linux/volume_id/ntfs.c
index 7b2612f01dd21213b0b868e32bd2ecace049fa69..0444e546b25bdea345812d3eabc3b2f20d774503 100644
(file)
--- a/
util-linux/volume_id/ntfs.c
+++ b/
util-linux/volume_id/ntfs.c
@@
-150,7
+150,7
@@
int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/)
attr = (struct file_attribute*) &buf[attr_off];
attr_type = le32_to_cpu(attr->type);
- attr_len = le
16
_to_cpu(attr->len);
+ attr_len = le
32
_to_cpu(attr->len);
val_off = le16_to_cpu(attr->value_offset);
val_len = le32_to_cpu(attr->value_len);
attr_off += attr_len;