The branch, master has been updated
       via  605d4d065cd vfs_virsufilter: Fix the invocation of 
SMB_VFS_NEXT_CONNECT
      from  1d1acebf019 smbd: fix mode being sent to possibly_set_archive

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 605d4d065cd5951385a744230cf7f159468c02a2
Author: Rabinarayan Panigrahi <[email protected]>
Date:   Tue Jul 15 21:15:49 2025 +0530

    vfs_virsufilter: Fix the invocation of SMB_VFS_NEXT_CONNECT
    
    virusfilter is failing if path is defined for virusfilter:quarantine
    as next module is not initialized by mean time. So rearranged invocation
    of SMB_VFS_NEXT_CONNECT call
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15663
    
    Signed-off-by: Rabinarayan Panigrahi <[email protected]>
    Reviewed-by: Anoop C S <[email protected]>
    Reviewed-by: Guenther Deschner <[email protected]>
    Reviewed-by: Ralph Boehme <[email protected]>
    
    Autobuild-User(master): Anoop C S <[email protected]>
    Autobuild-Date(master): Mon Jul 21 11:28:12 UTC 2025 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_virusfilter.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_virusfilter.c 
b/source3/modules/vfs_virusfilter.c
index c0cf9ff78db..547dd172b86 100644
--- a/source3/modules/vfs_virusfilter.c
+++ b/source3/modules/vfs_virusfilter.c
@@ -219,6 +219,11 @@ static int virusfilter_vfs_connect(
        int ret = -1;
        bool ok;
 
+       ret = SMB_VFS_NEXT_CONNECT(handle, svc, user);
+       if (ret < 0) {
+               return ret;
+       }
+
        config = talloc_zero(handle, struct virusfilter_config);
        if (config == NULL) {
                DBG_ERR("talloc_zero failed\n");
@@ -578,7 +583,7 @@ static int virusfilter_vfs_connect(
                }
        }
 
-       return SMB_VFS_NEXT_CONNECT(handle, svc, user);
+       return 0;
 }
 
 static void virusfilter_vfs_disconnect(struct vfs_handle_struct *handle)


-- 
Samba Shared Repository

Reply via email to