getcifsacl: don't freely cast between wbcDomainSid and cifs_sid
authorJeff Layton <jlayton@samba.org>
Fri, 9 Nov 2012 11:33:48 +0000 (06:33 -0500)
committerJeff Layton <jlayton@samba.org>
Fri, 9 Nov 2012 11:33:48 +0000 (06:33 -0500)
commitec80b4feeb2a86b3661e9c710b942196492a9af4
treeb2bb8c98874e8f22b384c119933650f394550cff
parentfeab5b327c5fea393d626f0ae3c33810fdafe518
getcifsacl: don't freely cast between wbcDomainSid and cifs_sid

While they are very similar, the cifs_sid is "packed" and the
wbcDomainSid isn't. There are also aliasing problems with gcc in
some cases. Instead of trying to cast and fix endianness in place,
make a separate copy instead.

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