From 862c561ffc3dcb45d80d5fdc314854687e98f525 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:08:15 +0200 Subject: [PATCH] smbd: Convert remove_msdfs_link to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/msdfs.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 2e32978861f..52a2a4852e9 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1317,18 +1317,15 @@ bool remove_msdfs_link(const struct junction_map *jucn) char *cwd; connection_struct *conn; bool ret = False; - struct smb_filename *smb_fname = NULL; - NTSTATUS status; + struct smb_filename *smb_fname; if (!junction_to_local_path(jucn, &path, &conn, &cwd)) { return false; } - 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); + smb_fname = synthetic_smb_fname(talloc_tos(), path, NULL, NULL); + if (smb_fname == NULL) { + errno = ENOMEM; return false; } -- 2.11.4.GIT