]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: parent_dirname_compatible_open(), parent_smb_fname() -> SMB_VFS_PARENT_PATH...
authorJeremy Allison <jra@samba.org>
Wed, 26 May 2021 18:45:42 +0000 (11:45 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Jun 2021 05:39:31 +0000 (05:39 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 1b670020143408933201dcc25d9265682aed3f1c..59fb20df3b59063db73ed7f146cd3a46f2da268d 100644 (file)
@@ -7517,14 +7517,15 @@ static NTSTATUS parent_dirname_compatible_open(connection_struct *conn,
        struct file_id id;
        files_struct *fsp = NULL;
        int ret;
-       bool ok;
+       NTSTATUS status;
 
-       ok = parent_smb_fname(talloc_tos(),
-                             smb_fname_dst_in,
-                             &smb_fname_parent,
-                             NULL);
-       if (!ok) {
-               return NT_STATUS_NO_MEMORY;
+       status = SMB_VFS_PARENT_PATHNAME(conn,
+                                        talloc_tos(),
+                                        smb_fname_dst_in,
+                                        &smb_fname_parent,
+                                        NULL);
+       if (!NT_STATUS_IS_OK(status)) {
+               return status;
        }
 
        ret = SMB_VFS_LSTAT(conn, smb_fname_parent);