Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18518/ntfsprogs
Modified Files:
ntfsinfo.c
Log Message:
fix attr->name_length endianess conversions: name_length is u8, not u16
Index: ntfsinfo.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsinfo.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -p -r1.107 -r1.108
--- ntfsinfo.c 26 Mar 2006 16:49:42 -0000 1.107
+++ ntfsinfo.c 26 Mar 2006 18:14:33 -0000 1.108
@@ -1113,7 +1113,7 @@ static void ntfs_dump_sds(ATTR_RECORD *a
if (FILE_Secure != inode)
return;
- name_len = le16_to_cpu(attr->name_length);
+ name_len = attr->name_length;
if (!name_len)
return;
@@ -1645,7 +1645,7 @@ static void ntfs_dump_index_allocation(A
type = get_index_attr_type(ni, attr, &index_root);
name = (ntfschar *)((u8 *)attr + le16_to_cpu(attr->name_offset));
- name_len = le16_to_cpu(attr->name_length);
+ name_len = attr->name_length;
byte = bitmap = ntfs_attr_readall(ni, AT_BITMAP, name, name_len, NULL);
if (!byte)
|