diff options
author | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:20 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:20 -0500 |
commit | c74be6c4f2d75008772ce5f4224d36e2556d31ac (patch) | |
tree | 598893988d5ad0bdbff0794830d14b83d32c046f | |
parent | 6a091a5aa6fd9de3e2ea700896e1949a5623b1c6 (diff) | |
download | cifs-utils-c74be6c4f2d75008772ce5f4224d36e2556d31ac.tar.gz cifs-utils-c74be6c4f2d75008772ce5f4224d36e2556d31ac.tar.bz2 cifs-utils-c74be6c4f2d75008772ce5f4224d36e2556d31ac.zip |
setcifsacl: fix endianness of ->size in build_cmdline_aces
The size must also be kept in little-endian.
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | setcifsacl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setcifsacl.c b/setcifsacl.c index 3178eff..8891844 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -626,8 +626,8 @@ build_cmdline_aces(char **arrptr, int numcaces) goto build_cmdline_aces_ret; } - cacesptr[i]->size = 1 + 1 + 2 + 4 + 1 + 1 + 6 + - (cacesptr[i]->sid.num_subauth * 4); + cacesptr[i]->size = htole16(1 + 1 + 2 + 4 + 1 + 1 + 6 + + cacesptr[i]->sid.num_subauth * 4); } return cacesptr; |