1 Mar
2013
1 Mar
'13
2:26 p.m.
On 02/28/13 at 02:54pm, Simon Gomizelj wrote:
Attempt to print yesno questions on /dev/tty so that ideally the user can't miss them, especially when redirecting stdout/stderr to file.
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com> --- src/pacman/util.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-)
<snip>
+cleanup: + if(stream != stdout) {
Shouldn't that be stderr?
+ fclose(stream); + } + + return rc; }
int yesno(char *fmt, ...) -- 1.8.1.4
apg