summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-05-14 14:19:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:02 -0500
commit00790cb8afaf768ba650ee40796ccdafc535ae8d (patch)
tree29599a6a3b8533f616373a71762fec793ec4485a
parentc9b94d7170d9093dc0a46827caf36c3c36f8d397 (diff)
downloadsamba-00790cb8afaf768ba650ee40796ccdafc535ae8d.tar.gz
samba-00790cb8afaf768ba650ee40796ccdafc535ae8d.tar.bz2
samba-00790cb8afaf768ba650ee40796ccdafc535ae8d.zip
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)
-rw-r--r--source3/libsmb/libsmbclient.c2
1 files changed, 1 insertions, 1 deletions
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;
}