Subject: Re: wall and no tty
To: None <>
From: Christos Zoulas <>
List: tech-userlevel
Date: 10/26/2004 19:21:28
In article <>,
Manuel Bouyer <> 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.