diff options
Diffstat (limited to 'crates/tor-keymgr/src')
| -rw-r--r-- | crates/tor-keymgr/src/keystore/arti.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/tor-keymgr/src/keystore/arti.rs b/crates/tor-keymgr/src/keystore/arti.rs index 221b617f4..4bf88ac39 100644 --- a/crates/tor-keymgr/src/keystore/arti.rs +++ b/crates/tor-keymgr/src/keystore/arti.rs @@ -355,6 +355,7 @@ mod tests { let key_path = key_path(&key_store, &KeyType::Ed25519Keypair); let parent = key_path.parent().unwrap(); fs::create_dir_all(parent).unwrap(); + #[cfg(unix)] fs::set_permissions(parent, fs::Permissions::from_mode(0o700)).unwrap(); fs::write(key_path, OPENSSH_ED25519).unwrap(); |
