ntfs-3g_capture.c: ntfs_get_ntfs_attrib() gets cpu-endian value
authorEric Biggers <ebiggers3@gmail.com>
Thu, 7 Aug 2014 04:32:41 +0000 (23:32 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 7 Aug 2014 04:32:41 +0000 (23:32 -0500)
src/ntfs-3g_capture.c

index fa5b46908b4b3f8d31618251bf69ce34e610dd1b..b8fb2779e75599bc48eb95f8ffc8f1daa2caa677 100644 (file)
@@ -529,7 +529,7 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_ret,
                                 ntfs_volume *vol,
                                 struct add_image_params *params)
 {
-       le32 attributes;
+       u32 attributes;
        int ret;
        struct wim_dentry *root = NULL;
        struct wim_inode *inode = NULL;
@@ -582,7 +582,7 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_ret,
        inode->i_creation_time    = le64_to_cpu(ni->creation_time);
        inode->i_last_write_time  = le64_to_cpu(ni->last_data_change_time);
        inode->i_last_access_time = le64_to_cpu(ni->last_access_time);
-       inode->i_attributes       = le32_to_cpu(attributes);
+       inode->i_attributes       = attributes;
        inode->i_resolved         = 1;
 
        /* Capture streams.  */