cifs: fix SID binary to string conversion
authorJeff Layton <jlayton@redhat.com>
Mon, 10 Dec 2012 11:10:44 +0000 (06:10 -0500)
committerSteve French <smfrench@gmail.com>
Tue, 11 Dec 2012 17:48:49 +0000 (11:48 -0600)
commit193cdd8a293007d1a1ad252cf66b2dc5b793d2d0
tree2bfefe36dd1c6ca0d42fc35b00bf323b8d41e5b3
parent6d8b59d712e95d257ee16f80b579677e5e1bf33c
cifs: fix SID binary to string conversion

The authority fields are supposed to be represented by a single 48-bit
value. It's also supposed to represent the value as hex if it's equal to
or greater than 2^32. This is documented in MS-DTYP, section 2.4.2.1.

Also, fix up the max string length to account for this fix.

Acked-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsacl.c
fs/cifs/cifsacl.h