The Samba-Bugzilla – Attachment 17900 Details for
Bug 15376
Fix pathref file handling to make Samba usable on FreeBSD 13+
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch the only enables Samba O_PATH support on Linux systems
freebsd_o_path.patch (text/plain), 932 bytes, created by
Peter Eriksson
on 2023-05-29 14:51:43 UTC
(
hide
)
Description:
Patch the only enables Samba O_PATH support on Linux systems
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2023-05-29 14:51:43 UTC
Size:
932 bytes
patch
obsolete
>diff -u -r samba-4.18.2/source3/modules/vfs_default.c samba-4.18.2-new/source3/modules/vfs_default.c >--- samba-4.18.2/source3/modules/vfs_default.c 2023-01-18 16:32:24.198553300 +0100 >+++ samba-4.18.2-new/source3/modules/vfs_default.c 2023-05-29 16:31:54.359488000 +0200 >@@ -729,7 +729,7 @@ > > SMB_ASSERT(!is_named_stream(smb_fname)); > >-#ifdef O_PATH >+#if defined(O_PATH) && defined(LINUX) > have_opath = true; > if (fsp->fsp_flags.is_pathref) { > flags |= O_PATH; >diff -u -r samba-4.18.2/source3/smbd/files.c samba-4.18.2-new/source3/smbd/files.c >--- samba-4.18.2/source3/smbd/files.c 2023-01-18 16:32:24.242553500 +0100 >+++ samba-4.18.2-new/source3/smbd/files.c 2023-05-29 16:22:00.977261000 +0200 >@@ -770,7 +770,7 @@ > } > fsp->fsp_name = &full_fname; > >-#ifdef O_PATH >+#if defined(O_PATH) && defined(LINUX) > /* > * Add O_PATH manually, doing this by setting > * fsp->fsp_flags.is_pathref will make us become_root() in the
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 15376
:
17900
|
17901
|
17913
|
17935
|
18181