s3: VFS: default: ntimes profile not ended when times not changed
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 11:00:51 +0000 (13:00 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (12:28 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c

index 376d7f51ea18caaf98b3e0a115b35cf1d985ae9a..3d5b520352e81f78919b8af1894dc78a7b5721c3 100644 (file)
@@ -2548,7 +2548,8 @@ static int vfswrap_ntimes(vfs_handle_struct *handle,
                                      &smb_fname->st.st_ex_atime) == 0) &&
                    (timespec_compare(&ft->mtime,
                                      &smb_fname->st.st_ex_mtime) == 0)) {
-                       return 0;
+                       result = 0;
+                       goto out;
                }
        }