getcifsacl: fix endianness before handing off SID to winbind
authorJeff Layton <jlayton@samba.org>
Wed, 7 Nov 2012 15:19:18 +0000 (10:19 -0500)
committerJeff Layton <jlayton@samba.org>
Wed, 7 Nov 2012 15:19:18 +0000 (10:19 -0500)
commitcc3417e69ca39a8b7eaf0df5ba848d0d4822924e
tree14e60a4980d97a0767388bf0fa54c1aff2be79ab
parent034a4baa9f3d496a19dbe3eb46d51cf8ef3adffd
getcifsacl: fix endianness before handing off SID to winbind

winbind expects SIDs to be expressed in host-endian. Convert them
from little-endian before asking winbind to convert them to names.

Also use the WBC_ERROR_IS_OK() macro to check the return code.

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