]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: open_file_ntcreate(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME().
authorJeremy Allison <jra@samba.org>
Wed, 26 May 2021 19:13:40 +0000 (12:13 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Jun 2021 05:39:30 +0000 (05:39 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c

index ba8d4fbabee65248401e3d10381039094290a4fc..85e13e3a39fa7371e96ec6d09f25b10525c90793 100644 (file)
@@ -3527,12 +3527,13 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                                        req->vuid);
        }
 
-       ok = parent_smb_fname(talloc_tos(),
-                             smb_fname,
-                             &parent_dir_fname,
-                             NULL);
-       if (!ok) {
-               return NT_STATUS_NO_MEMORY;
+       status = SMB_VFS_PARENT_PATHNAME(conn,
+                                        talloc_tos(),
+                                        smb_fname,
+                                        &parent_dir_fname,
+                                        NULL);
+       if (!NT_STATUS_IS_OK(status)) {
+               return status;
        }
 
        if (new_dos_attributes & FILE_FLAG_POSIX_SEMANTICS) {