setcifsacl: fix offset calculation in "set" code
authorJeff Layton <jlayton@samba.org>
Tue, 29 Jan 2013 12:08:48 +0000 (07:08 -0500)
committerJeff Layton <jlayton@samba.org>
Tue, 29 Jan 2013 12:15:45 +0000 (07:15 -0500)
commit653a6c66312382da381a2d44f8018d3222cadbdf
treebd0532cf98ba38a2dd5090a24466b68b206a61d4
parentfb9999a9d20495719f3fa323401b087ebef60a0d
setcifsacl: fix offset calculation in "set" code

Previously the code assumed that the ACE that was copied was of a
fixed size. Save off the return value from copy_ace and ensure that
we apply it correctly to the size and offset.

Reported-by: Jian Li <jiali@redhat.com>
Signed-off-by: Jeff Layton <jlayton@samba.org>
setcifsacl.c