diff options
author | Jeremy Allison <jra@samba.org> | 2019-09-13 11:17:45 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-09-26 17:20:48 +0000 |
commit | 66d86efb9a19285a09940f4f359c80dfd59cddd6 (patch) | |
tree | 0406032383efd653aec42a24a1edc006f790247e /source3/smbd | |
parent | 244c3820a87e4273b1135959d197ec9fd30866a7 (diff) | |
download | samba-66d86efb9a19285a09940f4f359c80dfd59cddd6.tar.gz |
s3: smbd: Change create_msdfs_link() to call SMB_VFS_UNLINKAT().
Use conn->cwd_fsp as current fsp. Rework to modern standards.
No logic change for now.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/msdfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index b438051c3fa..dabad072205 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1419,7 +1419,11 @@ bool create_msdfs_link(const struct junction_map *jucn) smb_fname); if (retval < 0) { if (errno == EEXIST) { - if(SMB_VFS_UNLINK(conn, smb_fname)!=0) { + retval = SMB_VFS_UNLINKAT(conn, + conn->cwd_fsp, + smb_fname, + 0); + if (retval != 0) { TALLOC_FREE(smb_fname); goto out; } |