summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-11-07 10:20:46 -0500
committerJeff Layton <jlayton@samba.org>2012-11-07 10:20:46 -0500
commitfd3d58c4e78098700a03551c7e7d2f2b63777502 (patch)
treed7c43cf5cbbdde3c8dbc8db5504564c6d7b86a42
parent3ff520f4380b8826d9eeda71da87e4e4548c4f4a (diff)
downloadcifs-utils-fd3d58c4e78098700a03551c7e7d2f2b63777502.tar.gz
cifs-utils-fd3d58c4e78098700a03551c7e7d2f2b63777502.tar.bz2
cifs-utils-fd3d58c4e78098700a03551c7e7d2f2b63777502.zip
getcifsacl: fix up printing of REVISION: and CONTROL: fields
They need endianness conversion too... Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r--getcifsacl.c4
1 files 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)