mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-07-27 01:22:16 +00:00
fix: restore Windows private file visibility
This commit is contained in:
parent
39de14291a
commit
dc616058fa
2 changed files with 3 additions and 3 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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(()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue