Subject: Re: wall and no tty
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/26/2004 19:21:28
In article <20041026180306.GA27698@antioche.lip6.fr>,
Manuel Bouyer <firstname.lastname@example.org> wrote:
>In rev 1.23, warn.c was changed to call check_sender(), to fix PR/7713.
>Unfortunably this breaks warn when called from a script, which doesn't have a
>tty (it will exit with "can't find your tty" error message). The attached
>patch fix this, by not calling check_sender() if we're not on a tty.
>Is it OK to commit ?
Let me fix it... Checking stdin is sub-optimal, because you can run
foo < bar and it will lose.