]> git.ipfire.org Git - thirdparty/util-linux.git/commit
vipw: flush stdout before getting answer.
authorÉrico Nogueira <erico.erc@gmail.com>
Fri, 22 Oct 2021 17:28:50 +0000 (14:28 -0300)
committerÉrico Nogueira <erico.erc@gmail.com>
Fri, 22 Oct 2021 17:31:26 +0000 (14:31 -0300)
commit34a9b65587a7d704db0344e859511af4a6756c89
treea7afa3575dd99111de17417372e88fb072be5fb0
parent58e4ee082bca100034791a4a74481f263bb30a25
vipw: flush stdout before getting answer.

Otherwise the question is displayed only after the user presses Return,
and the program looks like it's hanging.

This happens at least on musl libc.

Reported by @loreb.

Signed-off-by: Érico Nogueira <erico.erc@gmail.com>
login-utils/vipw.c