Date: Thu, 6 Sep 2001 03:06:57 -0700 From: Kris Kennaway <kris@obsecurity.org> To: hackers@FreeBSD.org Subject: undocumented wall(1) feature Message-ID: <20010906030656.C2453@xor.obsecurity.org>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Does anyone object to this?
Kris
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));
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE7l0rAWry0BWjoQKURAsbNAJ4xKYRl1GHd9rfWHZr9jRFvqfwAbQCg1g5D
qIDQD5LbDeRwlf39u9wwnFA=
=T5UH
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010906030656.C2453>
