diff options
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r-- | src/pacman/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c index 4bed22ae..e33001b3 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -173,7 +173,9 @@ int yesno(char *fmt, ...) va_start(args, fmt); vsnprintf(str, LOG_STR_LEN, fmt, args); va_end(args); - pm_fprintf(stderr, NL, str); + + /* Use stderr so questions are always displayed when redirecting output */ + ERR(NL, str); if(fgets(response, 32, stdin)) { /* trim whitespace and newlines */ |