Make sure we're not using the old smb_fname data.
authorJeremy Allison <jra@samba.org>
Fri, 4 Dec 2009 01:44:38 +0000 (17:44 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 4 Dec 2009 01:44:38 +0000 (17:44 -0800)
Jeremy.

source3/smbd/open.c

index 0ef8ed2d4eb37dd4b90807f5867bcbd72171514b..9dc8320b68415b308bfaa786cb5b881529b5ad10 100644 (file)
@@ -3188,7 +3188,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
 
        if ((ea_list != NULL) &&
            ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN))) {
-               status = set_ea(conn, fsp, smb_fname, ea_list);
+               status = set_ea(conn, fsp, fsp->fsp_name, ea_list);
                if (!NT_STATUS_IS_OK(status)) {
                        goto fail;
                }