From: Derrell Lipman Date: Mon, 14 May 2007 14:19:30 +0000 (+0000) Subject: r22850: - Fixes bug 4601. smbc_getxattr() would not, in one case, properly return the X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~466 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34f77af02e2073ccaabe1583011abeeabbbb24e1;p=thirdparty%2Fsamba.git r22850: - Fixes bug 4601. smbc_getxattr() would not, in one case, properly return the required size of a buffer needed to contain the extended attributes. --- diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c index 7a197f57f80..b1f073debcc 100644 --- a/source/libsmb/libsmbclient.c +++ b/source/libsmb/libsmbclient.c @@ -4699,7 +4699,7 @@ cacl_get(SMBCCTX *context, ace->access_mask); } } - if (n > bufsize) { + if (!determine_size && n > bufsize) { errno = ERANGE; return -1; }