The Samba-Bugzilla – Attachment 16541 Details for
Bug 14671
s3:modules:vfs_virusfilter:vfs_virusfilter_openat breaks with recent VFS changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
necessary VFS patch for vfs_virusfilter vs 4.14.0
vfs_virusfilter_openat.patch (text/plain), 877 bytes, created by
Trever Adams
on 2021-03-13 20:34:38 UTC
(
hide
)
Description:
necessary VFS patch for vfs_virusfilter vs 4.14.0
Filename:
MIME Type:
Creator:
Trever Adams
Created:
2021-03-13 20:34:38 UTC
Size:
877 bytes
patch
obsolete
>diff --git a/source3/modules/vfs_virusfilter.c b/source3/modules/vfs_virusfilter.c >index e0712b99b42..34a61d0b23e 100644 >--- a/source3/modules/vfs_virusfilter.c >+++ b/source3/modules/vfs_virusfilter.c >@@ -1215,11 +1215,7 @@ static int virusfilter_vfs_openat(struct vfs_handle_struct *handle, > bool ok1; > char *sret = NULL; > struct smb_filename *smb_fname = NULL; >- >- /* >- * For now assert this, so SMB_VFS_NEXT_STAT() below works. >- */ >- SMB_ASSERT(fsp_get_pathref_fd(dirfsp) == AT_FDCWD); >+ SMB_STRUCT_STAT sbuf = smb_fname_in->st; > > SMB_VFS_HANDLE_GET_DATA(handle, config, > struct virusfilter_config, return -1); >@@ -1261,7 +1257,7 @@ static int virusfilter_vfs_openat(struct vfs_handle_struct *handle, > goto virusfilter_vfs_open_next; > } > >- ret = SMB_VFS_NEXT_STAT(handle, smb_fname); >+ ret = SMB_VFS_NEXT_FSTAT(handle, fsp, &sbuf); > if (ret != 0) { > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14671
:
16541
|
16563