git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1607cd
)
vfs_streams_xattr: use pathref in streams_xattr_unlink_internal()
author
Ralph Boehme
<slow@samba.org>
Wed, 20 Jan 2021 14:19:31 +0000
(15:19 +0100)
committer
Jeremy Allison
<jra@samba.org>
Thu, 28 Jan 2021 08:11:49 +0000
(08:11 +0000)
All callers now pass an smb_fname that has a valid pathref fsp.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_streams_xattr.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_streams_xattr.c
b/source3/modules/vfs_streams_xattr.c
index 72032824b937c1ddfa9e48ec4cb49836f6ea2821..f66fad7d1692c8082e952036d96b2c547beec562 100644
(file)
--- a/
source3/modules/vfs_streams_xattr.c
+++ b/
source3/modules/vfs_streams_xattr.c
@@
-539,7
+539,10
@@
static int streams_xattr_unlink_internal(vfs_handle_struct *handle,
goto fail;
}
- ret = SMB_VFS_REMOVEXATTR(handle->conn, smb_fname, xattr_name);
+ SMB_ASSERT(smb_fname->fsp != NULL);
+ SMB_ASSERT(smb_fname->fsp->base_fsp != NULL);
+
+ ret = SMB_VFS_FREMOVEXATTR(smb_fname->fsp->base_fsp, xattr_name);
if ((ret == -1) && (errno == ENOATTR)) {
errno = ENOENT;