From dc616058faca7dd1846c8298ca305f9bf2c2b4a6 Mon Sep 17 00:00:00 2001 From: Lahfir Date: Sun, 12 Jul 2026 16:58:06 -0700 Subject: [PATCH] fix: restore Windows private file visibility --- crates/core/src/private_file.rs | 2 +- crates/core/src/private_file_windows.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/src/private_file.rs b/crates/core/src/private_file.rs index 0668072..cbbea51 100644 --- a/crates/core/src/private_file.rs +++ b/crates/core/src/private_file.rs @@ -10,7 +10,7 @@ static TEMP_COUNTER: AtomicU64 = AtomicU64::new(0); #[cfg(windows)] #[path = "private_file_windows.rs"] -mod windows; +pub(crate) mod windows; pub(crate) fn open_private_lock(path: &Path, create: bool) -> std::io::Result { #[cfg(windows)] diff --git a/crates/core/src/private_file_windows.rs b/crates/core/src/private_file_windows.rs index a7c6f21..4f30433 100644 --- a/crates/core/src/private_file_windows.rs +++ b/crates/core/src/private_file_windows.rs @@ -62,7 +62,7 @@ pub(super) fn create_new(path: &Path) -> std::io::Result { open_private(path, TEMP_ACCESS, CREATE_NEW, false) } -pub(super) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { +pub(crate) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { let path = path::normalized(path)?; let security = PrivateSecurity::new_directory()?; guard::with_ancestor_guards(&path, true, Some(&security), |guards| { @@ -70,7 +70,7 @@ pub(super) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { }) } -pub(super) fn ensure_user_parent(path: &Path) -> std::io::Result<()> { +pub(crate) fn ensure_user_parent(path: &Path) -> std::io::Result<()> { let path = path::normalized(path)?; let security = PrivateSecurity::new_directory()?; guard::with_ancestor_guards(&path, true, Some(&security), |_| Ok(()))