The Samba-Bugzilla – Attachment 18332 Details for
Bug 15435
regression DFS not working with widelinks = true
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
start of extra patch for master
master.patch (text/plain), 1.14 KB, created by
Noel Power
on 2024-06-07 22:25:25 UTC
(
hide
)
Description:
start of extra patch for master
Filename:
MIME Type:
Creator:
Noel Power
Created:
2024-06-07 22:25:25 UTC
Size:
1.14 KB
patch
obsolete
>From cd80db85f3ae8fc96475454dcec32c16543923ab Mon Sep 17 00:00:00 2001 >From: Noel Power <noel.power@suse.com> >Date: Fri, 7 Jun 2024 19:35:47 +0100 >Subject: [PATCH] HACKY fix for including dfs link(s) in direntries > >--- > source3/smbd/files.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/source3/smbd/files.c b/source3/smbd/files.c >index 046b58023bd..57222e0b75b 100644 >--- a/source3/smbd/files.c >+++ b/source3/smbd/files.c >@@ -1305,7 +1305,22 @@ next: > status = NT_STATUS_STOPPED_ON_SYMLINK; > goto fail; > } >- >+ if ((fd == -1) && (errno == ELOOP) && S_ISLNK(fsp->fsp_name->st.st_ex_mode)) { >+ NTSTATUS prev = status; >+ status = read_symlink_reparse(mem_ctx, >+ dirfsp, >+ &rel_fname, >+ &symlink_err); >+ if (!NT_STATUS_IS_OK(status)) { >+ DBG_DEBUG("create_open_symlink_err failed: %s\n", >+ nt_errstr(status)); >+ status = prev; >+ goto fail; >+ } >+ DBG_ERR("about to return NT_STATUS_STOPPED_ON_SYMLINK\n"); >+ status = NT_STATUS_STOPPED_ON_SYMLINK; >+ goto fail; >+ } > if (fd == -1) { > status = map_nt_error_from_unix(errno); > DBG_DEBUG("SMB_VFS_OPENAT() failed: %s\n", >-- >2.35.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15435
:
18013
|
18022
|
18331
|
18332
|
18335
|
18336
|
18337