Message ID | 1352299913-32624-1-git-send-email-jlayton@samba.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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)
They need endianness conversion too... Signed-off-by: Jeff Layton <jlayton@samba.org> --- getcifsacl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)