summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:00:14 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commitfe798621314aaba110fb59567ab8a10eac83266e (patch)
treed8778395ed8fac37ed1f29920f2ed0a1a75b4aa2 /source3/smbd
parentfa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be (diff)
downloadsamba-fe798621314aaba110fb59567ab8a10eac83266e.tar.gz
samba-fe798621314aaba110fb59567ab8a10eac83266e.tar.bz2
samba-fe798621314aaba110fb59567ab8a10eac83266e.zip
smbd: Convert open_np_file 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/pipes.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index 9cca3f03c1..05d98d4782 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -51,11 +51,10 @@ NTSTATUS open_np_file(struct smb_request *smb_req, const char *name,
fsp->can_lock = false;
fsp->access_mask = FILE_READ_DATA | FILE_WRITE_DATA;
- status = create_synthetic_smb_fname(talloc_tos(), name, NULL, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL);
+ if (smb_fname == NULL) {
file_free(smb_req, fsp);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
status = fsp_set_smb_fname(fsp, smb_fname);
TALLOC_FREE(smb_fname);