svn commit: samba r5935 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Tue Mar 22 02:23:51 GMT 2005


Author: jra
Date: 2005-03-22 02:23:50 +0000 (Tue, 22 Mar 2005)
New Revision: 5935

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

Log:
Fix bugs in earlier work in progress commit. Closer to properly supporting EA's now.
Jeremy.

Modified:
   trunk/source/smbd/trans2.c


Changeset:
Modified: trunk/source/smbd/trans2.c
===================================================================
--- trunk/source/smbd/trans2.c	2005-03-22 02:14:45 UTC (rev 5934)
+++ trunk/source/smbd/trans2.c	2005-03-22 02:23:50 UTC (rev 5935)
@@ -319,7 +319,7 @@
 		return NT_STATUS_EAS_NOT_SUPPORTED;
 	}
 
-	while (ea_list) {
+	for (;ea_list; ea_list = ea_list->next) {
 		int ret;
 		fstring unix_ea_name;
 
@@ -452,7 +452,7 @@
 		if (pdata[offset + 4 + namelen] != '\0') {
 			return NULL;
 		}
-		pull_ascii_talloc(ctx, &eal->ea.name, pdata + offset);
+		pull_ascii_talloc(ctx, &eal->ea.name, pdata + offset + 4);
 		if (!eal->ea.name) {
 			return NULL;
 		}



More information about the samba-cvs mailing list