]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r5936: Fix bugs in earlier work in progress commit. Closer to properly supporting...
authorJeremy Allison <jra@samba.org>
Tue, 22 Mar 2005 02:23:52 +0000 (02:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:09 +0000 (10:56 -0500)
Jeremy.

source/smbd/trans2.c

index d09231dd83e9b879c1664f333978d2d1bf1533ce..ce04da2751ebffd554ab03c6826f44d603a5c4bd 100644 (file)
@@ -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;
                }