1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Flush stdout before yes/no confirmations, to force question

through pipes/tee(1)/whatever
This commit is contained in:
Poul-Henning Kamp 2017-05-03 20:41:26 +00:00
parent b583a2c10d
commit 67c9f60e86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317771

View File

@ -946,6 +946,7 @@ pkg_query_yes_no(void)
{
int ret, c;
fflush(stdout);
c = getchar();
if (c == 'y' || c == 'Y')