History log of /freebsd-current/usr.bin/wall/wall.c
Revision Date Author Comments
# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# e5d258c9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .c pattern

Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/


# cccdaf50 07-Jul-2023 Alfonso Gregory <gfunni234@gmail.com>

Mark usage function as __dead2 in programs where it does not return

In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735


# e8d2bea9 27-Dec-2017 Warner Losh <imp@FreeBSD.org>

Close the fp rather than the fd since we fdopen the fd so we don't
leak the FILE *.

CID: 978383


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 50e04779 21-Oct-2012 Eitan Adler <eadler@FreeBSD.org>

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.

Submitted by: Erik Cederstrand
Approved by: cperciva
MFC after: 3 days


# 586fbee6 21-Mar-2012 Gleb Smirnoff <glebius@FreeBSD.org>

Add multibyte char support.

PR: 165429
Submitted by: amdmi3


# d7698e07 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to wall(1)


# b0023655 11-Jul-2011 David E. O'Brien <obrien@FreeBSD.org>

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.


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# ab90a4d1 13-Jan-2010 Ed Schouten <ed@FreeBSD.org>

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.


# 645e7f1b 29-Dec-2009 Ed Schouten <ed@FreeBSD.org>

Add missing `void' keyword.


# bd76376f 05-Dec-2009 Ed Schouten <ed@FreeBSD.org>

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.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 3c58f6dd 15-Jan-2008 David Schultz <das@FreeBSD.org>

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)


# b457a3e1 21-Feb-2006 Olivier Houchard <cognet@FreeBSD.org>

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>


# ca78e3fb 21-Feb-2003 Tim J. Robbins <tjr@FreeBSD.org>

Remove "sleeper" nonsense.


# 075f2939 11-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2 fix, use __FBSDID().

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


# 728d043e 09-Sep-2001 Dima Dorfman <dd@FreeBSD.org>

- 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


# 2cfec5ad 05-Sep-2001 Ruslan Ermilov <ru@FreeBSD.org>

Make ``wall -g'' really DTRT.

Reviewed by: imp, markm


# a47f98ed 08-May-2001 Kris Kennaway <kris@FreeBSD.org>

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


# 003ff943 02-Mar-2001 Warner Losh <imp@FreeBSD.org>

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


# 6a20d55a 28-Feb-2001 Warner Losh <imp@FreeBSD.org>

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@


# 56e7ae90 26-Nov-2000 Kris Kennaway <kris@FreeBSD.org>

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

Reviewed by: markm, dwmalone


# 80af0816 02-Oct-2000 Nick Hibma <n_hibma@FreeBSD.org>

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.


# 6e5d42b9 27-Jul-2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>

Let wall report the local timezone as well on output.

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


# c87eca8b 01-Sep-1999 Daniel Baker <dbaker@FreeBSD.org>

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>


# b4d6ab01 01-Sep-1999 Daniel Baker <dbaker@FreeBSD.org>

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>


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 98df703f 12-Dec-1998 Matthew Dillon <dillon@FreeBSD.org>

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().


# 58011702 14-Sep-1997 Andrey A. Chernov <ache@FreeBSD.org>

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


# 752d887a 25-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Add usage().


# 01f6848c 14-May-1997 Andrey A. Chernov <ache@FreeBSD.org>

Add locale-independent control checks for security reason


# 9566348d 13-May-1997 Andrey A. Chernov <ache@FreeBSD.org>

Localize it


# fc092135 08-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

Fix 8bit chars handling


# 1c8af878 28-Mar-1997 Warner Losh <imp@FreeBSD.org>

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


# f20e4169 10-Aug-1996 Alexander Langer <alex@FreeBSD.org>

Fix some improperly wrapped lines in the code.


# acc879c1 23-Oct-1994 Guido van Rooij <guido@FreeBSD.org>

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).


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources