History log of /freebsd-9.3-release/usr.bin/wall/wall.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 242166 26-Oct-2012 eadler

MFC r241848:
Check the return error of set[e][ug]id. While this can never fail in the
current version of FreeBSD, this isn't guarenteed by the API.
Custom security modules, or future implementations of the setuid and
setgid may fail.

Approved by: cperciva (implicit)


# 234275 14-Apr-2012 glebius

Merge 233269:
Add multibyte char support.

PR: 165429
Submitted by: amdmi3


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 223940 11-Jul-2011 obrien

If one's message is longer than the buffer size, then we reset 'cnt' at the
wrong point and the actual column # get out of sync across the buffer size.


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 202200 13-Jan-2010 ed

Perform all trivial ports to utmpx for usr.bin/.

They were already converted to use libulog, so it's easy to convert them
to utmpx.


# 201224 29-Dec-2009 ed

Add missing `void' keyword.


# 200156 05-Dec-2009 ed

Let wall(1) use utmpx.

Because our implementation guarantees the strings inside struct utmpx to
be null terminated, we don't need to copy everything out, which makes
the code nicer to read.

Also set WARNS to 6 and add $FreeBSD$ to keep SVN silent.


# 175346 15-Jan-2008 das

Fix some bugs in wall(1):
- Handle wrapping correctly when \r appears in the input, and don't
remove the \r from the output.
- For lines longer than 79 characters, don't drop every 80th character.
- Style: Braces around compound while statement.

PR: 114498
Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version)


# 155875 21-Feb-2006 cognet

In wall and who, check that the utmp entry isn't stalled, as it is done in w.
Apparently with the new pts code stalled entries are printed, when they are
not with the BSD ptys.

Submitted by: Michal Mertl <mime at traveller dot cz>


# 111209 21-Feb-2003 tjr

Remove "sleeper" nonsense.


# 87675 11-Dec-2001 markm

WARNS=2 fix, use __FBSDID().

Not added to Makefile as WARNS=2 will be made default.


# 83242 09-Sep-2001 dd

- Move the prototype of ttymsg() into ttymsg.h. syslogd and talkd
also use this, and they shouldn't have to have their own prototypes.

- Silence warnings about constness and signedness in ttymsg(). This
includes changing the return value to a `const char *', and changing
the types of `left' and `wret' (both byte counts) to ssize_t.

Reviewed by: bde


# 83082 05-Sep-2001 ru

Make ``wall -g'' really DTRT.

Reviewed by: imp, markm


# 76367 08-May-2001 kris

When opening the file to broadcast, do it with the user's gid, not the
egid (tty).

Obtained from: OpenBSD
Submitted by: Maxime Henrion <mux@qualys.com>
Reviewed by: imp


# 73320 02-Mar-2001 imp

Add -g group to usage message.
Don't treat pointer as a boolean, but instead test it against NULL.
Add warning for groups that don't exist

Submitted by: ru


# 73255 01-Mar-2001 imp

o Add support for wall -g. This will send a message to all members of
a given group.
o Minor code style cleanups while I'm here

Reviewed by: bde, kris, markm, audit@


# 69231 26-Nov-2000 kris

Cleanup this code a bit by attempting to sync it up with NetBSD and
with each other.

Reviewed by: markm, dwmalone


# 66557 02-Oct-2000 n_hibma

Instead of printing '(null)' if there is no tty, print 'no tty'.

In the case where the program is executed by a daemon running in the
background the terminal might not have a tty. The '(null)' is confusing.


# 63909 27-Jul-2000 asmodai

Let wall report the local timezone as well on output.

PR: 17867
Submitted by: Joel Ray Holveck <joelh@gnu.org>
Nagged by: nrahlstr


# 50776 01-Sep-1999 dbaker

column counter (cnt) not reset to 0 on display of '\r' which could cause
unnecessary forced linewraps on some terminals.

Submitted by: David McNett <nugget@slacker.com>


# 50772 01-Sep-1999 dbaker

Corrected apparent omission in program logic which was causing the
insertion of redundant crlf's. Eliminated the venetian-blind effect
in walled text.

Submitted by: David McNett <nugget@slacker.com>


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 41717 13-Dec-1998 dillon

PR: bin/8680

Increase the size of a number of buffers and replace strcpy/strcat/sprintf
with snprintf(). There was a minor and possibly not exploitable security
hole related to one sprintf().


# 29434 14-Sep-1997 ache

Change manual declarations of some functions to proper includes
Rewrote allowed character test to be more efficient
Fix screen position calculations: control and 8bit characters was
not counted properly


# 28695 25-Aug-1997 charnier

Use err(3). Add usage().


# 25812 14-May-1997 ache

Add locale-independent control checks for security reason


# 25777 13-May-1997 ache

Localize it


# 24729 08-Apr-1997 ache

Fix 8bit chars handling


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 17505 11-Aug-1996 alex

Fix some improperly wrapped lines in the code.


# 3809 23-Oct-1994 guido

The talkd security hole can ealso be exploited by wall (and thus rwall).
write and talk are not affected.
Now print out escape sequences in the same way as is done by write(1).


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources