The Samba-Bugzilla – Attachment 17130 Details for
Bug 14727
Non portable use of /proc breaks smbd on BSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to drop O_CREAT from fd opening
patch-source3_smbd_open.c (text/plain), 536 bytes, created by
Thomas Orgis
on 2022-01-27 22:14:28 UTC
(
hide
)
Description:
patch to drop O_CREAT from fd opening
Filename:
MIME Type:
Creator:
Thomas Orgis
Created:
2022-01-27 22:14:28 UTC
Size:
536 bytes
patch
obsolete
>$NetBSD$ > >--- source3/smbd/open.c.orig 2022-01-27 18:20:00.791110968 +0000 >+++ source3/smbd/open.c >@@ -1189,11 +1189,13 @@ static NTSTATUS reopen_from_procfd(struc > > fsp->fsp_flags.is_pathref = false; > >+ /* O_CREAT not useful for reopening, and it upsets BSD kernels, >+ * see https://bugzilla.samba.org/show_bug.cgi?id=14727 . */ > new_fd = SMB_VFS_OPENAT(fsp->conn, > fsp->conn->cwd_fsp, > &proc_fname, > fsp, >- flags, >+ flags & ~O_CREAT, > mode); > if (new_fd == -1) { > status = map_nt_error_from_unix(errno);
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 14727
: 17130