ssh-authkeys-split: do not zap keys without trailing newlines
commit264c26b57daa1891f9cd9cebc71c727b47515234
authorTony Finch <dot@dotat.at>
Wed, 31 Aug 2016 11:10:12 +0000 (31 12:10 +0100)
committerSitaram Chamarty <sitaram@atc.tcs.com>
Wed, 31 Aug 2016 12:41:47 +0000 (31 18:11 +0530)
tree9028f574265bc06ebed9a994400a543f0573124c
parent490b54023ae16c46496977649c9de821898974e0
ssh-authkeys-split: do not zap keys without trailing newlines

The normal ssh-authkeys script handles key files without trailing newlines
OK. However ssh-authkeys-split does not, because it tries to treat a
zero-newline file as a multi-line file, and the shell `read` builtin will
not read a line that ends with eof rather than a newline. So it ends up
discarding zero-newline keys.
src/triggers/post-compile/ssh-authkeys-split