The Samba-Bugzilla – Attachment 18331 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 4.19
4.19.patch (text/plain), 1.06 KB, created by
Noel Power
on 2024-06-07 20:05:48 UTC
(
hide
)
Description:
start of extra patch for 4.19
Filename:
MIME Type:
Creator:
Noel Power
Created:
2024-06-07 20:05:48 UTC
Size:
1.06 KB
patch
obsolete
>From 54294a1b014586f2a078a1eb73f5352cb93efe63 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 | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/source3/smbd/files.c b/source3/smbd/files.c >index 02cfc424822..c72e92d8834 100644 >--- a/source3/smbd/files.c >+++ b/source3/smbd/files.c >@@ -1167,6 +1167,22 @@ next: > goto fail; > } > >+ if ((fd == -1) && (errno == ENOENT) && S_ISLNK(fsp->fsp_name->st.st_ex_mode)) { >+ NTSTATUS prev = status; >+ status = create_open_symlink_err(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; >+ } >+ symlink_err->st = fsp->fsp_name->st; >+ 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