chiark / gitweb /
ssh keys update: Log when we find the hardlink situation
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Jun 2021 13:53:14 +0000 (14:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Jun 2021 13:53:14 +0000 (14:53 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/sshkeys.rs

index ab4fd3fb3ec5897c9314dc6582eceade3c7c5dcd..b0dc191a7a2a668916e146396be52ead7f6eb5b6 100644 (file)
@@ -496,6 +496,7 @@ impl Global {
         let devino = |f: &File| f.metadata().map(|m| (m.dev(), m.ino()));
         if devino(staticf).context("fstat static auth keys")? ==
            devino(&f).context("fstat existing auth keys")? {
+             info!("auth keys files hardlinked, doing first install");
              return Ok(());
            }
       }