smbd: Convert dptr_create to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:53:32 +0000 (11:53 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:03 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 346ff8683fa174d3dfbce63367755822b47c7110..022e5d1f4d83ed490a8f474379bf753108d40747 100644 (file)
@@ -514,14 +514,13 @@ NTSTATUS dptr_create(connection_struct *conn,
        } else {
                int ret;
                bool backup_intent = (req && req->priv_paths);
-               struct smb_filename *smb_dname = NULL;
-               NTSTATUS status = create_synthetic_smb_fname(talloc_tos(),
-                                               path,
-                                               NULL,
-                                               NULL,
-                                               &smb_dname);
-               if (!NT_STATUS_IS_OK(status)) {
-                       return status;
+               struct smb_filename *smb_dname;
+               NTSTATUS status;
+
+               smb_dname = synthetic_smb_fname(talloc_tos(), path,
+                                               NULL, NULL);
+               if (smb_dname == NULL) {
+                       return NT_STATUS_NO_MEMORY;
                }
                if (lp_posix_pathnames()) {
                        ret = SMB_VFS_LSTAT(conn, smb_dname);