Add changelog

This commit is contained in:
sxyazi 2026-04-17 00:08:49 +08:00
parent a79d5e21d0
commit d28243c09a
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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?;