aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_leveldatabase_env__chromium.cc
blob: 4e32182457b8b9056e0b2fd8221daa2350722255 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- third_party/leveldatabase/env_chromium.cc.orig	2023-09-13 12:11:42 UTC
+++ third_party/leveldatabase/env_chromium.cc
@@ -320,7 +320,8 @@ ChromiumWritableFile::ChromiumWritableFile(const std::
 
 Status ChromiumWritableFile::SyncParent() {
   TRACE_EVENT0("leveldb", "SyncParent");
-#if defined(OS_POSIX) || defined(OS_FUCHSIA)
+// pledge violation (directory passed as fd)
+#if (defined(OS_POSIX) || defined(OS_FUCHSIA)) && !defined(OS_OPENBSD)
   FilePath path = FilePath::FromUTF8Unsafe(parent_dir_);
   FileErrorOr<base::File> result = filesystem_->OpenFile(
       path, base::File::FLAG_OPEN | base::File::FLAG_READ);