diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:08:15 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:01 -0700 |
commit | 862c561ffc3dcb45d80d5fdc314854687e98f525 (patch) | |
tree | b2e7cbbb8ef0a033b1fbb21171bf2cf1e135af60 /source3/smbd | |
parent | 576df8742828c676997021cc8a58c2b7168cb0a9 (diff) | |
download | samba-862c561ffc3dcb45d80d5fdc314854687e98f525.tar.gz samba-862c561ffc3dcb45d80d5fdc314854687e98f525.tar.bz2 samba-862c561ffc3dcb45d80d5fdc314854687e98f525.zip |
smbd: Convert remove_msdfs_link 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/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; } |