setcifsacl: fix endianness on SIDs provided by winbind routines
authorJeff Layton <jlayton@samba.org>
Wed, 7 Nov 2012 15:19:16 +0000 (10:19 -0500)
committerJeff Layton <jlayton@samba.org>
Wed, 7 Nov 2012 15:19:16 +0000 (10:19 -0500)
commit78a2a8b9c6b5ce040122f87e6000636ca8574544
tree2dc2d0966b1a198ac79ed3de03885be2515886c2
parent49d24798aec743f7acee76d7c9953cd2501f78d8
setcifsacl: fix endianness on SIDs provided by winbind routines

Winbind keeps SID fields in host-endian format, but setcifsacl doesn't
currently account for that. Make sure that when we get a valid SID
from wbc that we convert the subauth fields to little-endian, which
the server will expect. The other fields are single bytes and don't
need conversion.

Signed-off-by: Jeff Layton <jlayton@samba.org>
setcifsacl.c