diff options
| author | tv <tv@krebsco.de> | 2026-10-31 05:28:26 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 05:28:26 +0100 |
| commit | 155c675dd5733b1887ee165689380c64134f173c (patch) | |
| tree | 82e572f9dfd4a09b0dc4e8b7ee8f75f84dfe0a58 /src/identity.rs | |
| parent | e64b9de5ee572b503b11b95df843ea64466902e7 (diff) | |
move warn_if_readable_by_others to files module
Diffstat (limited to 'src/identity.rs')
| -rw-r--r-- | src/identity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/identity.rs b/src/identity.rs index 96e524e..8efe30f 100644 --- a/src/identity.rs +++ b/src/identity.rs @@ -48,7 +48,7 @@ impl NodeKey { .with_context(|| format!("Reading the node key from {}", path.display())); } }; - crate::swarm::auth::warn_if_readable_by_others(path, "node key"); + crate::files::warn_if_readable_by_others(path, "node key"); let Ok(seed) = <[u8; KEY_BYTES]>::try_from(bytes.as_slice()) else { bail!( "The node key in {} has {} bytes; a node key has {KEY_BYTES}", |
