mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Flush stdout before yes/no confirmations, to force question
through pipes/tee(1)/whatever
This commit is contained in:
parent
b583a2c10d
commit
67c9f60e86
1 changed files with 1 additions and 0 deletions
|
|
@ -946,6 +946,7 @@ pkg_query_yes_no(void)
|
|||
{
|
||||
int ret, c;
|
||||
|
||||
fflush(stdout);
|
||||
c = getchar();
|
||||
|
||||
if (c == 'y' || c == 'Y')
|
||||
|
|
|
|||
Loading…
Reference in a new issue