summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:53:32 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit59cfbc7925ee93ef963780085fa9c2c0e08e7421 (patch)
tree1b6a66097dc2d91a1b24f2a34c7323efcf8fbcff /source3/smbd
parent235a309fc17f029912cbd0608b36a080435ae4b9 (diff)
downloadsamba-59cfbc7925ee93ef963780085fa9c2c0e08e7421.tar.gz
samba-59cfbc7925ee93ef963780085fa9c2c0e08e7421.tar.bz2
samba-59cfbc7925ee93ef963780085fa9c2c0e08e7421.zip
smbd: Convert dptr_create to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dir.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 346ff8683f..022e5d1f4d 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -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);