From owner-freebsd-hackers Thu Sep 6 3: 7: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-54.dsl.lsan03.pacbell.net [63.207.60.54]) by hub.freebsd.org (Postfix) with ESMTP id 1FEC137B406 for ; Thu, 6 Sep 2001 03:06:58 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id AA5FC66D24; Thu, 6 Sep 2001 03:06:57 -0700 (PDT) Date: Thu, 6 Sep 2001 03:06:57 -0700 From: Kris Kennaway To: hackers@FreeBSD.org Subject: undocumented wall(1) feature Message-ID: <20010906030656.C2453@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anyone object to this? Kris Index: wall.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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); =20 -#define IGNOREUSER "sleeper" - struct wallgroup { struct wallgroup *next; char *name; @@ -140,8 +138,7 @@ iov.iov_len =3D mbufsize; /* NOSTRICT */ while (fread((char *)&utmp, sizeof(utmp), 1, fp) =3D=3D 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)); --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7l0rAWry0BWjoQKURAsbNAJ4xKYRl1GHd9rfWHZr9jRFvqfwAbQCg1g5D qIDQD5LbDeRwlf39u9wwnFA= =T5UH -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message