Home | History | Annotate | Download | only in wall
History log of /src/usr.bin/wall/wall.c
RevisionDateAuthorComments
 1.30  21-Nov-2015  christos PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g
Modernize.
 1.29  06-Sep-2011  joerg static + __dead
 1.28  14-Apr-2009  lukem Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)
 1.27  15-Feb-2009  dholland Skip over the ":0" entries that gdm, kdm, and unpatched versions of xdm
(ours is patched to not do this) leave in utmp. PR 26168.

I'm doing this by testing for ^:[0-9] in the line field of utmp(x),
rather than by attempting to stat the device name corresponding to the
entry as in Martin's patch, because (1) no valid tty should ever have
a name beginning with a colon, and (2) this way we don't silently skip
over real ttys that should be there but for some reason have disappeared.

(I suppose this might conceivably fail to catch entries for displays
connected via XDCMP; however, ~nobody does that any more and XDCMP is
a security hole anyhow. If anyone's really concerned about this, let
me know.)

In the long run we should look into ways of getting "tty" messages to
users logged in with an X session and no terminal windows open, as
that's probably fairly common for the desktop.
 1.26  21-Jul-2008  lukem branches: 1.26.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.25  27-Oct-2004  christos branches: 1.25.28;
Call check_sender with NULL atime, meaning no strict checking.
 1.24  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.23  21-Apr-2003  christos PR/7713: David Holland: warn if we have mesg n.
 1.22  27-Mar-2003  lukem fix minor buglet in previous
 1.21  27-Mar-2003  lukem * Add support for "-g group", to send messages to users in this group.
This option may be specified multiple times, and any user in any of the
specified groups will receive the message.
(From OpenBSD, with tweaks from FreeBSD fed back into OpenBSD).

* Ensure that paths are MAXPATHLEN. (From OpenBSD)

* Display timezone when printing time. (From FreeBSD PR 17867 via wall.c 1.14)
 1.20  16-Aug-2002  itojun defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev. revoke setuid/gid privs earlier.
From: xs@kittenz.org
 1.19  02-Aug-2002  christos utmpx support.
 1.18  05-Jan-2001  mjl ANSIfy
 1.17  05-Jan-2001  mjl Remove mysterious check for "sleeper" who would not get walled.
 1.16  02-Oct-2000  taca - Knf auto variables in modified line by me.
- Print "??" as tty name instead of print nothing. Suggested by jhawk.
 1.15  06-Sep-2000  mjl Increase temporary buffer size not to truncate temp file template.
 1.14  04-Sep-2000  taca - Check return value of ttyname(3) and prevent to pass NULL pointer for
"%s" in printf style format string.
- Use STDERR_FILENO as paramter for ttyname(3).
 1.13  14-Apr-2000  simonb branches: 1.13.4;
Don't declare 'extern opt*' getopt variables.
 1.12  29-May-1999  christos PR/7664: David Holand: bogus check for mkstemp() return code.
 1.11  26-Jul-1998  mycroft branches: 1.11.2;
const poisoning.
 1.10  05-Jul-1998  mrg ensure hostname fits and is nul-terminated.
 1.9  20-Oct-1997  lukem use err.h, fix .Nm usage
 1.8  29-Jun-1997  christos - Cleanup warnings
- Move ttymsg to libutil.h
 1.7  11-Feb-1997  mrg remove possibly dangerous sprintf and strcpy calls.
 1.6  17-Nov-1994  jtc Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
 1.5  27-Aug-1993  jtc Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  26-Apr-1993  mycroft Fix NULL pointer reference and don't drop character when wrapping.
 1.2  04-Apr-1993  cgd added support for uid `nobody' running wall with -n option (no banner),
for rwalld support.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  17-Nov-1994  jtc imported from 4.4lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.2.1  21-Jun-1999  perry pullup 1.11->1.12 (christos): bogus check for mkstemp() return code
 1.13.4.2  08-Oct-2000  taca Pullup revision 1.14 -> 1.16, approved by jhawk:

> 1.14 -> 1.15 (by mjl)
> - Increase temporary buffer size not to truncate temp file template.
>
> 1.15 -> 1.16
> - Knf auto variables in modified line by me.
> - Print "??" as tty name instead of print nothing. Suggested by jhawk.
 1.13.4.1  01-Oct-2000  taca Pull up revsino 1.13 -> 1.14, apoorved by jhawk:

> - Check return value of ttyname(3) and prevent to pass NULL pointer for
> "%s" in printf style format string.
> - Use STDERR_FILENO as paramter for ttyname(3).
 1.25.28.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.26.6.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed