[pacman-dev] [PATCH 2/3] print yesno questions on /dev/tty if available
andrew.gregory.8 at gmail.com
andrew.gregory.8 at gmail.com
Fri Mar 1 09:26:43 EST 2013
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 at 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
More information about the pacman-dev
mailing list