Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2001 16:08:54 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        hackers@FreeBSD.org
Subject:   Re: undocumented wall(1) feature
Message-ID:  <20010906160854.K18362@sunbay.com>
In-Reply-To: <20010906030656.C2453@xor.obsecurity.org>; from kris@obsecurity.org on Thu, Sep 06, 2001 at 03:06:57AM -0700
References:  <20010906030656.C2453@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 06, 2001 at 03:06:57AM -0700, Kris Kennaway wrote:
> Does anyone object to this?
> 
Just a bit of history.  This has been added with this CSRG
commit:

: D 4.5 81/06/12 13:23:15 root 5 4        00003/00001/00129
: MRs:
: COMMENTS:
: I suppressed wall messages to the sleeper program

Not sure what does it mean.  Perhaps, at that times,
the sleeper existed as a user process and was run
under the sleeper user.

> Index: wall.c
> ===================================================================
> RCS file: /mnt/ncvs/src/usr.bin/wall/wall.c,v
> retrieving revision 1.19
> diff -u -r1.19 wall.c
> --- wall.c	2001/05/08 11:11:42	1.19
> +++ wall.c	2001/09/06 10:06:06
> @@ -71,8 +71,6 @@
>  static void usage(void);
>  char   *ttymsg(struct iovec *, int, const char *, int);
>  
> -#define	IGNOREUSER	"sleeper"
> -
>  struct wallgroup {
>  	struct wallgroup *next;
>  	char		*name;
> @@ -140,8 +138,7 @@
>  	iov.iov_len = mbufsize;
>  	/* NOSTRICT */
>  	while (fread((char *)&utmp, sizeof(utmp), 1, fp) == 1) {
> -		if (!utmp.ut_name[0] ||
> -		    !strncmp(utmp.ut_name, IGNOREUSER, sizeof(utmp.ut_name)))
> +		if (!utmp.ut_name[0])
>  			continue;
>  		if (grouplist) {
>  			strlcpy(username, utmp.ut_name, sizeof(utmp.ut_name));



-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010906160854.K18362>