diff options
Diffstat (limited to 'source3/smbd/msdfs.c')
-rw-r--r-- | source3/smbd/msdfs.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 2e32978861..52a2a4852e 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; } |