git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1354f2f
)
s3: smbd: Change smb_set_file_unix_link() to call SMB_VFS_SYMLINKAT().
author
Jeremy Allison
<jra@samba.org>
Fri, 30 Aug 2019 21:13:21 +0000
(14:13 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 Sep 2019 21:15:43 +0000
(21:15 +0000)
Use conn->cwd_fsp as current fsp.
No logic change for now.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 0befee64c0c41a561f284249e566f30a2a6766ef..cb3c80af59bed02280c4cfb6221e0771e7bf2edf 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-6930,6
+6930,7
@@
static NTSTATUS smb_set_file_unix_link(connection_struct *conn,
{
char *link_target = NULL;
TALLOC_CTX *ctx = talloc_tos();
+ int ret;
/* Set a symbolic link. */
/* Don't allow this if follow links is false. */
@@
-6952,7
+6953,11
@@
static NTSTATUS smb_set_file_unix_link(connection_struct *conn,
DEBUG(10,("smb_set_file_unix_link: SMB_SET_FILE_UNIX_LINK doing symlink %s -> %s\n",
new_smb_fname->base_name, link_target ));
- if (SMB_VFS_SYMLINK(conn,link_target,new_smb_fname) != 0) {
+ ret = SMB_VFS_SYMLINKAT(conn,
+ link_target,
+ conn->cwd_fsp,
+ new_smb_fname);
+ if (ret != 0) {
return map_nt_error_from_unix(errno);
}