fix: restore Windows private file visibility

This commit is contained in:
Lahfir 2026-07-12 16:58:06 -07:00
parent 39de14291a
commit dc616058fa
2 changed files with 3 additions and 3 deletions

View file

@ -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<File> {
#[cfg(windows)]

View file

@ -62,7 +62,7 @@ pub(super) fn create_new(path: &Path) -> std::io::Result<File> {
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(()))