From d28243c09afbf29cef6270b1ad89126566bf8b76 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 17 Apr 2026 00:08:49 +0800 Subject: [PATCH] Add changelog --- CHANGELOG.md | 2 ++ yazi-fs/src/provider/local/local.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40ff9a3b..a123698a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): ### Fixed - Chafa v1.18.1 causes random ghost keypresses when previewing images ([#3678]) +- `paste --force` doesn't work on existing read-only files with the same name ([#3894]) - Be a little defensive while parsing the output of `7zz -ba` ([#3744]) - Make `ya pkg` ignore default remote name in user Git config ([#3648]) - Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607]) @@ -1701,3 +1702,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): [#3854]: https://github.com/sxyazi/yazi/pull/3854 [#3862]: https://github.com/sxyazi/yazi/pull/3862 [#3891]: https://github.com/sxyazi/yazi/pull/3891 +[#3894]: https://github.com/sxyazi/yazi/pull/3894 diff --git a/yazi-fs/src/provider/local/local.rs b/yazi-fs/src/provider/local/local.rs index 19804dcc..6ec0557d 100644 --- a/yazi-fs/src/provider/local/local.rs +++ b/yazi-fs/src/provider/local/local.rs @@ -138,7 +138,7 @@ impl<'a> Provider for Local<'a> { let perm = if mode.contains(ChaMode::U_WRITE) { libc::S_IWRITE } else { libc::S_IREAD }; return tokio::task::spawn_blocking(move || { - let result = unsafe { libc::_wchmod(path.as_ptr(), perm) }; + let result = unsafe { libc::wchmod(path.as_ptr(), perm) }; if result == 0 { Ok(()) } else { Err(io::Error::last_os_error()) } }) .await?;