From: Jeremy Allison Date: Tue, 22 Mar 2005 02:23:52 +0000 (+0000) Subject: r5936: Fix bugs in earlier work in progress commit. Closer to properly supporting... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5084 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8aa2b2617baefef004a864c4210b20a66ef89fd4;p=thirdparty%2Fsamba.git r5936: Fix bugs in earlier work in progress commit. Closer to properly supporting EA's now. Jeremy. --- diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index d09231dd83e..ce04da2751e 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -319,7 +319,7 @@ static NTSTATUS set_ea(connection_struct *conn, files_struct *fsp, const char *f 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 @@ static struct ea_list *read_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t d 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; }