r22850: - Fixes bug 4601. smbc_getxattr() would not, in one case, properly return the
authorDerrell Lipman <derrell@samba.org>
Mon, 14 May 2007 14:19:30 +0000 (14:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:02 +0000 (12:22 -0500)
  required size of a buffer needed to contain the extended attributes.

source/libsmb/libsmbclient.c

index 7a197f57f806736d297a39d455ea68b40d25b566..b1f073debcca11e06c58cc6dcdd14ebc9139f91a 100644 (file)
@@ -4699,7 +4699,7 @@ cacl_get(SMBCCTX *context,
                                                              ace->access_mask);
                                         }
                                 }
-                                if (n > bufsize) {
+                                if (!determine_size && n > bufsize) {
                                         errno = ERANGE;
                                         return -1;
                                 }