diff -r a0587c1b633a -r 66e34bc44280 rust/hg-core/src/checkexec.rs --- a/rust/hg-core/src/checkexec.rs Fri Dec 13 16:50:21 2024 +0000 +++ b/rust/hg-core/src/checkexec.rs Thu Dec 05 13:17:32 2024 +0000 @@ -98,7 +98,10 @@ leave_file = false; }; - let tmp_file = tempfile::NamedTempFile::new_in(checkdir)?; + let tmp_file = tempfile::Builder::new() + .permissions(std::fs::Permissions::from_mode(0o666)) + .tempfile_in(checkdir)?; + if !is_executable(tmp_file.path())? { make_executable(tmp_file.path())?; if is_executable(tmp_file.path())? {