]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In parent_dirname_compatible_open(), use helper function vfs_stat().
authorJeremy Allison <jra@samba.org>
Tue, 14 Dec 2021 00:08:14 +0000 (16:08 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 15 Dec 2021 18:36:31 +0000 (18:36 +0000)
This is a change in behavior, but the old behavior was incorrect.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/smbd/reply.c

index d7c5b962ca79657a6b8ff5bed53acabe73714d91..eeae563766a55637ecff87d9b6e70773c04b7993 100644 (file)
@@ -7072,7 +7072,7 @@ static NTSTATUS parent_dirname_compatible_open(connection_struct *conn,
                return status;
        }
 
-       ret = SMB_VFS_LSTAT(conn, smb_fname_parent);
+       ret = vfs_stat(conn, smb_fname_parent);
        if (ret == -1) {
                return map_nt_error_from_unix(errno);
        }