diff options
author | Matthias Wolf <matthias@rheinwolf.de> | 2021-06-17 09:22:35 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2021-06-17 09:32:02 +0000 |
commit | 9c8545d7801e5a5b68dd4c68d5f0dcb7109015d0 (patch) | |
tree | bd5ba927b4a7b2e0fc9aeef18b17d738079b2edd /www/chromium/files/patch-base_files_file__util__posix.cc | |
parent | ccd805d32e3522eee71501f122f41f59f99fd1b5 (diff) | |
download | ports-9c8545d7801e5a5b68dd4c68d5f0dcb7109015d0.tar.gz ports-9c8545d7801e5a5b68dd4c68d5f0dcb7109015d0.zip |
www/chromium: update to 91.0.4472.101
Security: https://vuxml.freebsd.org/freebsd/20b3ab21-c9df-11eb-8558-3065ec8fd3ec.html
(cherry picked from commit 06317815238060a3a7f5911f18a3dd7c95779c83)
Diffstat (limited to 'www/chromium/files/patch-base_files_file__util__posix.cc')
-rw-r--r-- | www/chromium/files/patch-base_files_file__util__posix.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/www/chromium/files/patch-base_files_file__util__posix.cc b/www/chromium/files/patch-base_files_file__util__posix.cc index b6fc1193f750..ca0e4d4a8e28 100644 --- a/www/chromium/files/patch-base_files_file__util__posix.cc +++ b/www/chromium/files/patch-base_files_file__util__posix.cc @@ -1,6 +1,6 @@ ---- base/files/file_util_posix.cc.orig 2021-04-14 18:40:48 UTC +--- base/files/file_util_posix.cc.orig 2021-05-12 22:05:40 UTC +++ base/files/file_util_posix.cc -@@ -380,7 +380,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, +@@ -384,7 +384,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, } bool CreateLocalNonBlockingPipe(int fds[2]) { @@ -9,7 +9,7 @@ return pipe2(fds, O_CLOEXEC | O_NONBLOCK) == 0; #else int raw_fds[2]; -@@ -928,8 +928,12 @@ bool AllocateFileRegion(File* file, int64_t offset, si +@@ -932,8 +932,12 @@ bool AllocateFileRegion(File* file, int64_t offset, si // space. It can fail because the filesystem doesn't support it. In that case, // use the manual method below. @@ -23,7 +23,7 @@ return true; DPLOG(ERROR) << "fallocate"; #elif defined(OS_APPLE) -@@ -1099,7 +1103,7 @@ int GetMaximumPathComponentLength(const FilePath& path +@@ -1103,7 +1107,7 @@ int GetMaximumPathComponentLength(const FilePath& path #if !defined(OS_ANDROID) // This is implemented in file_util_android.cc for that platform. bool GetShmemTempDir(bool executable, FilePath* path) { @@ -32,7 +32,7 @@ bool disable_dev_shm = false; #if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_CHROMEOS_LACROS) disable_dev_shm = CommandLine::ForCurrentProcess()->HasSwitch( -@@ -1115,7 +1119,7 @@ bool GetShmemTempDir(bool executable, FilePath* path) +@@ -1119,7 +1123,7 @@ bool GetShmemTempDir(bool executable, FilePath* path) *path = FilePath("/dev/shm"); return true; } @@ -41,7 +41,7 @@ return GetTempDir(path); } #endif // !defined(OS_ANDROID) -@@ -1153,7 +1157,7 @@ PrefetchResult PreReadFile(const FilePath& file_path, +@@ -1157,7 +1161,7 @@ PrefetchResult PreReadFile(const FilePath& file_path, // posix_fadvise() is only available in the Android NDK in API 21+. Older // versions may have the required kernel support, but don't have enough usage // to justify backporting. @@ -50,7 +50,7 @@ (defined(OS_ANDROID) && __ANDROID_API__ >= 21) File file(file_path, File::FLAG_OPEN | File::FLAG_READ); if (!file.IsValid()) -@@ -1189,7 +1193,7 @@ PrefetchResult PreReadFile(const FilePath& file_path, +@@ -1193,7 +1197,7 @@ PrefetchResult PreReadFile(const FilePath& file_path, return internal::PreReadFileSlow(file_path, max_bytes) ? PrefetchResult{PrefetchResultCode::kSlowSuccess} : PrefetchResult{PrefetchResultCode::kSlowFailed}; @@ -59,7 +59,7 @@ // __ANDROID_API__ >= 21) } -@@ -1224,7 +1228,7 @@ bool MoveUnsafe(const FilePath& from_path, const FileP +@@ -1263,7 +1267,7 @@ bool CopyFileContentsWithSendfile(File& infile, #endif // !defined(OS_NACL_NONSFI) @@ -68,7 +68,7 @@ BASE_EXPORT bool IsPathExecutable(const FilePath& path) { bool result = false; FilePath tmp_file_path; -@@ -1245,6 +1249,6 @@ BASE_EXPORT bool IsPathExecutable(const FilePath& path +@@ -1284,6 +1288,6 @@ BASE_EXPORT bool IsPathExecutable(const FilePath& path } return result; } |