Skip to main content

apply_600_permissions

Function apply_600_permissions 

Source
pub fn apply_600_permissions(path: &Path) -> Result<()>
Expand description

Sets 600 permissions (owner read/write only) on Unix systems.

On non-Unix systems this is a no-op. Centralises the chmod 600 used by write_xdg_config and write_file_config.