summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:55:53 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commitcc0b8351a445243bdefd4b98a31548b2c51e43b8 (patch)
treef8494cc47a70357e1a18ebde26d9c7551a8a4be8 /source3/smbd/open.c
parent940ad94906129cf5f65125961470a3a5f41ea78f (diff)
downloadsamba-cc0b8351a445243bdefd4b98a31548b2c51e43b8.tar.gz
samba-cc0b8351a445243bdefd4b98a31548b2c51e43b8.tar.bz2
samba-cc0b8351a445243bdefd4b98a31548b2c51e43b8.zip
smbd: Convert create_file_unixpath to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index fedd2b9b24..0d9698a560 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3741,11 +3741,11 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
}
/* Create an smb_filename with stream_name == NULL. */
- status = create_synthetic_smb_fname(talloc_tos(),
- smb_fname->base_name,
- NULL, NULL,
- &smb_fname_base);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_base = synthetic_smb_fname(talloc_tos(),
+ smb_fname->base_name,
+ NULL, NULL);
+ if (smb_fname_base == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto fail;
}