aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-remoting_host_mojo__ipc__server.cc
diff options
context:
space:
mode:
authorMatthias Wolf <freebsd@rheinwolf.de>2021-08-22 08:38:57 +0000
committerRene Ladan <rene@FreeBSD.org>2021-08-22 08:51:02 +0000
commit1a8f509f6d4073363b5a39a8da581e05dec4834c (patch)
tree8936c740a279de0ee24b07fada5e0f2f68f49fd9 /www/chromium/files/patch-remoting_host_mojo__ipc__server.cc
parentf302216145c10a30b4d11951a1611cb7725b8297 (diff)
downloadports-1a8f509f6d4073363b5a39a8da581e05dec4834c.tar.gz
ports-1a8f509f6d4073363b5a39a8da581e05dec4834c.zip
www/chromium: update to 92.0.4515.159
Mark broken on i386 for now, it does not compile there because of a ssize_t * vs off_t * mismatch. MFH: 2021Q3 Security: https://vuxml.freebsd.org/freebsd/128deba6-ff56-11eb-8514-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/c3c6c4a3-f47d-11eb-b632-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/76487640-ea29-11eb-a686-3065ec8fd3ec.html (cherry picked from commit 76daa653245e62b0f8e07ef4899c0a5bb176b3da)
Diffstat (limited to 'www/chromium/files/patch-remoting_host_mojo__ipc__server.cc')
-rw-r--r--www/chromium/files/patch-remoting_host_mojo__ipc__server.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/www/chromium/files/patch-remoting_host_mojo__ipc__server.cc b/www/chromium/files/patch-remoting_host_mojo__ipc__server.cc
new file mode 100644
index 000000000000..6b2618134aec
--- /dev/null
+++ b/www/chromium/files/patch-remoting_host_mojo__ipc__server.cc
@@ -0,0 +1,32 @@
+--- remoting/host/mojo_ipc_server.cc.orig 2021-07-28 08:18:06 UTC
++++ remoting/host/mojo_ipc_server.cc
+@@ -12,9 +12,9 @@
+ #include "build/build_config.h"
+ #include "mojo/public/cpp/system/invitation.h"
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ #include "base/files/file_util.h"
+-#endif // defined(OS_LINUX)
++#endif // defined(OS_LINUX) || defined(OS_BSD)
+
+ #if defined(OS_WIN)
+ #include "base/strings/stringprintf.h"
+@@ -101,7 +101,7 @@ void MojoIpcServerBase::StopServer() {
+ server_started_ = false;
+ CloseAllConnections();
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ // Any pending invitations will become orphaned, and a client that accepts an
+ // orphaned invitation may incorrectly believe that the server is still alive,
+ // so we just simply delete the socket file to prevent clients from
+@@ -109,7 +109,7 @@ void MojoIpcServerBase::StopServer() {
+ io_sequence_->PostTask(FROM_HERE,
+ base::BindOnce(base::IgnoreResult(&base::DeleteFile),
+ base::FilePath(server_name_)));
+-#endif // defined(OS_LINUX)
++#endif // defined(OS_LINUX) || defined(OS_BSD)
+ }
+
+ void MojoIpcServerBase::SendInvitation() {