They need endianness conversion too...
Signed-off-by: Jeff Layton <[email protected]>
---
getcifsacl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/getcifsacl.c b/getcifsacl.c
index c576fc0..b76c8ec 100644
--- a/getcifsacl.c
+++ b/getcifsacl.c
@@ -327,8 +327,8 @@ parse_sec_desc(struct cifs_ntsd *pntsd, ssize_t acl_len,
int raw)
le32toh(pntsd->gsidoffset));
dacloffset = le32toh(pntsd->dacloffset);
dacl_ptr = (struct cifs_ctrl_acl *)((char *)pntsd + dacloffset);
- printf("REVISION:0x%x\n", pntsd->revision);
- printf("CONTROL:0x%x\n", pntsd->type);
+ printf("REVISION:0x%x\n", le16toh(pntsd->revision));
+ printf("CONTROL:0x%x\n", le16toh(pntsd->type));
rc = parse_sid(owner_sid_ptr, end_of_acl, "OWNER", raw);
if (rc)
--
1.7.12.1
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html