Subject: Re: wall and no tty
To: Manuel Bouyer <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 10/27/2004 10:05:12
On Oct 27, 12:45pm, email@example.com (Manuel Bouyer) wrote:
-- Subject: Re: wall and no tty
| On Tue, Oct 26, 2004 at 07:20:03PM -0400, Christos Zoulas wrote:
| > On Oct 26, 10:09pm, firstname.lastname@example.org (Manuel Bouyer) wrote:
| > -- Subject: Re: wall and no tty
| > | Ha, yes.
| > | But your fix isn't correct either; wall may be called from a script which
| > | isn't run as root. I can't see why we should refuse to run wall for non-root
| > | users which don't have a tty.
| > |
| > Well, we could just skip the check for root then...
| and never call check_sender() ?
| But then this would revert wall.c 1.23, which was the fix for PR/7713.
No, just skip the check in check_sender if we cannot find the tty of the user.
I.e. s/if (myuid == 0)//