svn commit: samba r22862 - in branches/SAMBA_3_0_25/source/libsmb: .

jra at samba.org jra at samba.org
Mon May 14 17:40:56 GMT 2007


Author: jra
Date: 2007-05-14 17:40:55 +0000 (Mon, 14 May 2007)
New Revision: 22862

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22862

Log:
Fix from derrell for bug #4601.
- Fixes bug 4601.  smbc_getxattr() would not, in one case, properly return the
  required size of a buffer needed to contain the extended attributes.
Jeremy.

Modified:
   branches/SAMBA_3_0_25/source/libsmb/libsmbclient.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/libsmb/libsmbclient.c
===================================================================
--- branches/SAMBA_3_0_25/source/libsmb/libsmbclient.c	2007-05-14 17:34:02 UTC (rev 22861)
+++ branches/SAMBA_3_0_25/source/libsmb/libsmbclient.c	2007-05-14 17:40:55 UTC (rev 22862)
@@ -4709,7 +4709,7 @@
                                                              ace->access_mask);
                                         }
                                 }
-                                if (n > bufsize) {
+                                if (!determine_size && n > bufsize) {
                                         errno = ERANGE;
                                         return -1;
                                 }



More information about the samba-cvs mailing list