Skip to main content

restrict_to_owner

Function restrict_to_owner 

Source
pub fn restrict_to_owner(path: &Path) -> Result<(), String>
Expand description

Restrict a file to its owner where the platform can express that.

Windows has no chmod equivalent — files inherit the directory ACL — so this is a no-op there and unv doctor reports the check as not enforceable rather than passing. A check that always passes proves nothing.