]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 Aug 2017 08:50:10 +0000 (10:50 +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>
(backported from commit 0ed3075ee7edfecde7455a2c64e9df882828343b)

source3/modules/vfs_streams_xattr.c

index c1b6b7db56a67d679963307a68d3f3be2ba1d70b..dcfff967096eaf548fab8f170a9c81231d6fe9c8 100644 (file)
@@ -744,7 +744,7 @@ static NTSTATUS walk_xattr_streams(vfs_handle_struct *handle,
 
                status = get_ea_value(names,
                                        handle->conn,
-                                       fsp,
+                                       NULL,
                                        smb_fname->base_name,
                                        names[i],
                                        &ea);
@@ -956,7 +956,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,
                              sio->base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;
@@ -1014,7 +1014,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,
                              sio->base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;
@@ -1059,7 +1059,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,
                              sio->base, sio->xattr_name, &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;