diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:06:57 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:01 -0700 |
commit | 576df8742828c676997021cc8a58c2b7168cb0a9 (patch) | |
tree | eb86cf674915307e907342aa1cc471cf4539af22 /source3/smbd | |
parent | 01b8f34e49e4d95935b6c520cbd833b34c6ce792 (diff) | |
download | samba-576df8742828c676997021cc8a58c2b7168cb0a9.tar.gz samba-576df8742828c676997021cc8a58c2b7168cb0a9.tar.bz2 samba-576df8742828c676997021cc8a58c2b7168cb0a9.zip |
smbd: Convert create_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 | 14 |
1 files changed, 6 insertions, 8 deletions
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; } |