Subject: Re: wall and no tty
To: Manuel Bouyer <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/27/2004 13:29:25
On Oct 27, 5:47pm, firstname.lastname@example.org (Manuel Bouyer) wrote:
-- Subject: Re: wall and no tty
| On Wed, Oct 27, 2004 at 10:05:12AM -0400, Christos Zoulas wrote:
| > | 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)//
| Ha, OK. Yes, this would be OK for wall, but write() uses check_sender() too,
| and it doesn't deal with check_sender() returning NULL (but should be as simple
| as if (mytty == NULL) errx("...");)
You are right, I'll come up with a fix.