vfs_streams_xattr: always pass NULL as fsp arg to get_ea_value()
authorRalph Boehme <slow@samba.org>
Thu, 11 May 2017 15:38:00 +0000 (17:38 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 9 Aug 2017 16:41:06 +0000 (18:41 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12791

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_streams_xattr.c

index 971a00c039f5d9a006528dc00283149cf6e895ab..5eb2b9b230a5d7cc04b19aadeb666ed003739cde 100644 (file)
@@ -747,7 +747,7 @@ static NTSTATUS walk_xattr_streams(vfs_handle_struct *handle,
 
                status = get_ea_value(names,
                                        handle->conn,
-                                       fsp,
+                                       NULL,
                                        smb_fname,
                                        names[i],
                                        &ea);
@@ -971,7 +971,7 @@ static ssize_t streams_xattr_pwrite(vfs_handle_struct *handle,
                return -1;
        }
 
-       status = get_ea_value(talloc_tos(), handle->conn, fsp,
+       status = get_ea_value(talloc_tos(), handle->conn, NULL,
                              smb_fname_base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;
@@ -1041,7 +1041,7 @@ static ssize_t streams_xattr_pread(vfs_handle_struct *handle,
                return -1;
        }
 
-       status = get_ea_value(talloc_tos(), handle->conn, fsp,
+       status = get_ea_value(talloc_tos(), handle->conn, NULL,
                              smb_fname_base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;
@@ -1258,7 +1258,7 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle,
                return -1;
        }
 
-       status = get_ea_value(talloc_tos(), handle->conn, fsp,
+       status = get_ea_value(talloc_tos(), handle->conn, NULL,
                              smb_fname_base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;