Home | History | Annotate | only in /src/usr.bin/wall
History log of /src/usr.bin/wall
RevisionDateAuthorComments
 1.13 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.12 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.11 21-Nov-2015  christos branches: 1.11.16;
PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g
Modernize.
 1.10 28-May-2007  tls Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.9 21-Apr-2003  christos PR/7713: David Holland: warn if we have mesg n.
 1.8 18-Sep-2002  lukem makefile delint. use NETBSDSRCDIR as appropriate
 1.7 02-Aug-2002  christos utmpx support.
 1.6 20-Oct-1997  lukem use err.h, fix .Nm usage
 1.5 01-Jul-1997  christos Add WARNS=1
 1.4 29-Jun-1997  christos - Cleanup warnings
- Move ttymsg to libutil.h
 1.3 17-Nov-1994  jtc Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
 1.2 30-Jul-1993  mycroft Add RCS identifiers.
 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.16.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.5 29-Jun-1997  christos - Cleanup warnings
- Move ttymsg to libutil.h
 1.4 11-Feb-1997  mrg remove possibly dangerous sprintf and strcpy calls.
 1.3 17-Nov-1994  jtc Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 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.7 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.6 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.5 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.4 20-Oct-1997  lukem use err.h, fix .Nm usage
 1.3 17-Nov-1994  jtc Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 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.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