The Samba-Bugzilla – Attachment 16760 Details for
Bug 14816
smbd built with ‘-DDISABLE_OPATH=1’ will hang opening FIFO file in the samba share.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for master.
0001-s3-smbd-Fix-openat_pathref_fsp-to-cope-with-FIFO-s-i.patch (text/plain), 893 bytes, created by
Jeremy Allison
on 2021-09-02 21:42:22 UTC
(
hide
)
Description:
git-am fix for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2021-09-02 21:42:22 UTC
Size:
893 bytes
patch
obsolete
>From 6120ca99f25cd959b359381a3982808a1ceec8ab Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Thu, 2 Sep 2021 14:40:53 -0700 >Subject: [PATCH] s3: smbd: Fix openat_pathref_fsp() to cope with FIFO's in the > filesystem. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14816 > >Signed-off-by: Jeremy Allison <jra@samba.org> >--- > source3/smbd/files.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/source3/smbd/files.c b/source3/smbd/files.c >index 413706fee0c..a2269d8da65 100644 >--- a/source3/smbd/files.c >+++ b/source3/smbd/files.c >@@ -503,6 +503,10 @@ NTSTATUS openat_pathref_fsp(const struct files_struct *dirfsp, > } > } > >+ if (S_ISFIFO(smb_fname->st.st_ex_mode)) { >+ open_flags |= O_NONBLOCK; >+ } >+ > status = fd_openat(dirfsp, smb_fname, fsp, open_flags, 0); > if (!NT_STATUS_IS_OK(status)) { > if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND) || >-- >2.30.2 >
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 14816
:
16760
|
16761
|
16775