summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-22 02:23:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:09 -0500
commitebb9ba6ddc88d53656eddf0149abc99299bb6a3e (patch)
tree1a110e56dc3fec6ab5d45798d8cbdb5b144dce59 /source3
parent442b9f3e87ee7f9fe8c100cd37c9591733e290e6 (diff)
downloadsamba-ebb9ba6ddc88d53656eddf0149abc99299bb6a3e.tar.gz
samba-ebb9ba6ddc88d53656eddf0149abc99299bb6a3e.tar.bz2
samba-ebb9ba6ddc88d53656eddf0149abc99299bb6a3e.zip
r5936: Fix bugs in earlier work in progress commit. Closer to properly supporting EA's now.
Jeremy. (This used to be commit 8aa2b2617baefef004a864c4210b20a66ef89fd4)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index d09231dd83..ce04da2751 100644
--- a/source3/smbd/trans2.c
+++ b/source3/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;
}