mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 16:07:38 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
20 lines
838 B
C++
20 lines
838 B
C++
--- remoting/host/ipc_constants.cc.orig 2023-02-08 09:03:45 UTC
|
|
+++ remoting/host/ipc_constants.cc
|
|
@@ -17,7 +17,7 @@ namespace remoting {
|
|
|
|
namespace {
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
|
|
#if !defined(NDEBUG)
|
|
// Use a different IPC name for debug builds so that we can run the host
|
|
@@ -68,7 +68,7 @@ GetChromotingHostServicesServerName() {
|
|
static const base::NoDestructor<mojo::NamedPlatformChannel::ServerName>
|
|
server_name(
|
|
named_mojo_ipc_server::WorkingDirectoryIndependentServerNameFromUTF8(
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
// Linux host creates the socket file in /tmp, and it won't be
|
|
// deleted until reboot, so we put username in the path in case
|
|
// the user switches the host owner.
|