]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph: Simplify SMB_VFS_FGET_DOS_ATTRIBUTES
authorAnoop C S <anoopcs@samba.org>
Sat, 18 May 2024 07:07:44 +0000 (12:37 +0530)
committerAnoop C S <anoopcs@samba.org>
Mon, 3 Jun 2024 10:02:39 +0000 (10:02 +0000)
Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/modules/vfs_ceph.c

index 6dae8a5f9e84bba51e352d325e9b62db90385438..1fb89e3e81ef599e63c224b98e69266cf6e8bba8 100644 (file)
@@ -1577,9 +1577,6 @@ static NTSTATUS cephwrap_fget_dos_attributes(struct vfs_handle_struct *handle,
        NTSTATUS status;
 
        status = fget_ea_dos_attribute(fsp, dosmode);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
 
        /*
         * Restore previously stored btime from statx timestamps as it should be
@@ -1589,7 +1586,7 @@ static NTSTATUS cephwrap_fget_dos_attributes(struct vfs_handle_struct *handle,
         */
        fsp->fsp_name->st.st_ex_btime = saved_btime;
 
-       return NT_STATUS_OK;
+       return status;
 }
 
 /****************************************************************