From: Ian Jackson Date: Wed, 2 Jun 2021 16:40:54 +0000 (+0100) Subject: sshkeys: Fix newline insertion X-Git-Tag: otter-0.7.0~102 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=79da48d2c8ddee33aa88e032293868247bb1504f;p=otter.git sshkeys: Fix newline insertion Signed-off-by: Ian Jackson --- diff --git a/src/sshkeys.rs b/src/sshkeys.rs index 77a14b8e..d92840d3 100644 --- a/src/sshkeys.rs +++ b/src/sshkeys.rs @@ -513,7 +513,7 @@ impl Global { .context("open static auth keys")), } { io::copy(&mut sf, &mut f).context("copy data into new auth keys")?; - writeln!(sf).context("write newline into new auth keys")?; + writeln!(f).context("write newline into new auth keys")?; } let mut f = BufWriter::new(f);