From 576df8742828c676997021cc8a58c2b7168cb0a9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:06:57 +0200 Subject: smbd: Convert create_msdfs_link to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/msdfs.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source3') diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 5388db9147..2e32978861 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1279,14 +1279,12 @@ bool create_msdfs_link(const struct junction_map *jucn) if(SMB_VFS_SYMLINK(conn, msdfs_link, path) < 0) { if (errno == EEXIST) { - struct smb_filename *smb_fname = NULL; - NTSTATUS status; - - status = create_synthetic_smb_fname(talloc_tos(), path, - NULL, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + struct smb_filename *smb_fname; + + smb_fname = synthetic_smb_fname(talloc_tos(), path, + NULL, NULL); + if (smb_fname == NULL) { + errno = ENOMEM; goto out; } -- cgit