]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: fix hang waiting for second Enter on input
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Jul 2019 16:35:34 +0000 (18:35 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Jul 2019 10:07:19 +0000 (12:07 +0200)
commitee41670ffbecb000db873f839a7381495bbe2bc6
tree7c8a00b2ab65e254fbd28726fd510c31be7d9806
parentecada8f25e96cd90fce865356a13604a3d97ce2a
firstboot: fix hang waiting for second Enter on input

The comment explains the reason: we'd wait for the second \n
and then ungetc() it. Then the buffered \n would cause a problem
when the next prompt was issued, so in effect it wasn't possible
to answer the second question.
src/basic/fileio.c