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 <[email protected]>
> ---
> 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