mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
- Make existing patches apply cleanly Changelog: https://chromium.googlesource.com/chromium/src/+log/72.0.3626.121..73.0.3683.86?pretty=fuller&n=10000 Submitted by: Matthias Wolf MFH: 2019Q2
16 lines
470 B
C++
16 lines
470 B
C++
--- base/process/internal_linux.cc.orig 2019-03-11 22:00:51 UTC
|
|
+++ base/process/internal_linux.cc
|
|
@@ -60,10 +60,13 @@ bool ReadProcFile(const FilePath& file, std::string* b
|
|
// Synchronously reading files in /proc is safe.
|
|
ThreadRestrictions::ScopedAllowIO allow_io;
|
|
|
|
+#if !defined(OS_BSD)
|
|
if (!ReadFileToString(file, buffer)) {
|
|
DLOG(WARNING) << "Failed to read " << file.MaybeAsASCII();
|
|
return false;
|
|
}
|
|
+#endif
|
|
+
|
|
return !buffer->empty();
|
|
}
|
|
|