From 00790cb8afaf768ba650ee40796ccdafc535ae8d Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Mon, 14 May 2007 14:19:30 +0000 Subject: 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. (This used to be commit 34f77af02e2073ccaabe1583011abeeabbbb24e1) --- source3/libsmb/libsmbclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 7a197f57f8..b1f073debc 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/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; } -- cgit