From: Wayne Davison Date: Mon, 5 Nov 2007 15:02:30 +0000 (+0000) Subject: Fixed get_xattr_acl() -- it needed to zero *len_p. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e516b69ef67822cbbde7252cdddb1217b4aa5567?hp=7df593f21f124b1907e33cc9699be2b0d8191440 Fixed get_xattr_acl() -- it needed to zero *len_p. --- diff --git a/xattrs.c b/xattrs.c index e65f652a..2345214a 100644 --- a/xattrs.c +++ b/xattrs.c @@ -804,6 +804,7 @@ int set_xattr(const char *fname, const struct file_struct *file, char *get_xattr_acl(const char *fname, int is_access_acl, size_t *len_p) { const char *name = is_access_acl ? XACC_ACL_ATTR : XDEF_ACL_ATTR; + *len_p = 0; /* no extra data alloc needed from get_xattr_data() */ return get_xattr_data(fname, name, len_p, 1); }