--- third_party/leveldatabase/env_chromium.cc.orig 2024-02-21 00:21:10 UTC +++ third_party/leveldatabase/env_chromium.cc @@ -326,7 +326,8 @@ Status ChromiumWritableFile::SyncParent() { 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 result = filesystem_->OpenFile( path, base::File::FLAG_OPEN | base::File::FLAG_READ);