svn commit: samba r22850 - in branches/SAMBA_3_0/source/libsmb: .

derrell at samba.org derrell at samba.org
Mon May 14 14:19:31 GMT 2007


Author: derrell
Date: 2007-05-14 14:19:30 +0000 (Mon, 14 May 2007)
New Revision: 22850

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

Log:

- Fixes bug 4601.  smbc_getxattr() would not, in one case, properly return the
  required size of a buffer needed to contain the extended attributes.

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


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/libsmbclient.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/libsmbclient.c	2007-05-14 13:47:03 UTC (rev 22849)
+++ branches/SAMBA_3_0/source/libsmb/libsmbclient.c	2007-05-14 14:19:30 UTC (rev 22850)
@@ -4699,7 +4699,7 @@
                                                              ace->access_mask);
                                         }
                                 }
-                                if (n > bufsize) {
+                                if (!determine_size && n > bufsize) {
                                         errno = ERANGE;
                                         return -1;
                                 }



More information about the samba-cvs mailing list