mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Security: https://vuxml.freebsd.org/freebsd/5c777f88-40ff-4e1e-884b-ad63dfb9bb15.html Security: https://vuxml.freebsd.org/freebsd/9c91e1f8-f255-4b57-babe-2e385558f1dc.html
21 lines
727 B
C++
21 lines
727 B
C++
--- ui/gtk/ime_compat_check.cc.orig 2025-07-02 06:08:04 UTC
|
|
+++ ui/gtk/ime_compat_check.cc
|
|
@@ -35,6 +35,10 @@ struct InputMethod {
|
|
|
|
std::vector<base::FilePath> GetLibrarySearchPaths() {
|
|
std::vector<base::FilePath> search_path;
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ // We really only care about this search path.
|
|
+ search_path.emplace_back("/usr/local/lib");
|
|
+#else
|
|
void* handle = dlopen("libc.so.6", RTLD_GLOBAL | RTLD_LAZY | RTLD_NOLOAD);
|
|
if (!handle) {
|
|
return search_path;
|
|
@@ -60,6 +64,7 @@ std::vector<base::FilePath> GetLibrarySearchPaths() {
|
|
// SAFETY: The range is bound by `serinfo.dls_cnt`.
|
|
search_path.emplace_back(UNSAFE_BUFFERS(sip->dls_serpath[j].dls_name));
|
|
}
|
|
+#endif
|
|
|
|
return search_path;
|
|
}
|