git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
244c382
)
s3: smbd: Change create_msdfs_link() to call SMB_VFS_UNLINKAT().
author
Jeremy Allison
<jra@samba.org>
Fri, 13 Sep 2019 18:17:45 +0000
(11:17 -0700)
committer
Ralph Boehme
<slow@samba.org>
Thu, 26 Sep 2019 17:20:48 +0000
(17:20 +0000)
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>
source3/smbd/msdfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/msdfs.c
b/source3/smbd/msdfs.c
index b438051c3faea1bdec078430335b1bc70154ea13..dabad0722051e936d3907ea3245834af3a998f09 100644
(file)
--- 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;
}