OpenBSD CVS

CVS log for src/usr.bin/wall/wall.c


[BACK] Up to [local] / src / usr.bin / wall

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:12 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 5 10:04:24 2022 UTC (2 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.35: +5 -2 lines
Diff to previous 1.35 (colored)

Fix line wrapping in wall(1).
from Anton Borowka; OK mbuhl@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:20 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 28 20:17:51 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

ttyname() is used after unveil/pledge, so _PATH_DEVDB must also be
permitted.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Aug 7 18:28:05 2018 UTC (5 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.32: +5 -1 lines
Diff to previous 1.32 (colored)

unveil can be used to restrict access to utmp and /dev

Revision 1.32 / (download) - annotate - [select for diffs], Mon Aug 1 20:30:25 2016 UTC (7 years, 9 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Allow a bel character in wall. This was missed when migrating away from
vis(3). This brings the allowed characters on par with write(1).

Noticed by consus <at> gmx <dot> com
OK millert@

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 8 17:09:42 2016 UTC (8 years ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored)

The header <vis.h> is no longer needed; ok martijn@.

Revision 1.30 / (download) - annotate - [select for diffs], Sun May 8 16:19:35 2016 UTC (8 years ago) by martijn
Branch: MAIN
Changes since 1.29: +19 -16 lines
Diff to previous 1.29 (colored)

Enable UTF-8 detection in wall(1). This deliberately ignores UTF-8 characters
and replaces them with a single question mark. Similar to write(1).

code OK and tweaks schwarze@
man page adjustment by schwarze@ and OK jmc@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 5 22:20:11 2015 UTC (8 years, 6 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.28: +30 -2 lines
Diff to previous 1.28 (colored)

pledge wall(1)
based on an idea from deraadt@,
tested on YP by miod, ok deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Sep 29 03:19:24 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

Delete the final, inscrutable NOSTRICT and VARARGS lint comments

ok millert@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:42 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:14 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:49 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.24: +1 -14 lines
Diff to previous 1.24 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 3 20:30:03 2009 UTC (14 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

It is sufficient to call getgrnam(3) once.  Remove the first call.
ok millert

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 3 20:22:39 2009 UTC (14 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

In addgroup() malloc(3) does not allocate enough memory as it only
counts the number of elements but not their size.  This can crash
"wall -g group" if many users are in the group.
ok millert

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 21 00:45:34 2004 UTC (20 years, 3 months ago) by tom
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +8 -7 lines
Diff to previous 1.21 (colored)

Correctness is also not using err(1, "out of memory") if malloc()
fails (per err(3)).  Ditto for strdup().

ok henning@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 20 12:49:34 2004 UTC (20 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.20: +11 -11 lines
Diff to previous 1.20 (colored)

correctness is err vs. errx use
From: Pedro Martelletto <pbastos@rdc.puc-rio.br>

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 2 00:21:17 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 25 21:09:53 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

delete junk protos

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:22 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.17: +3 -7 lines
Diff to previous 1.17 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 5 13:11:07 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

make sure files are MAXPATHLEN sized; ianm@cit.uws.edu.au

Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 6 14:21:47 2001 UTC (22 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.15: +3 -6 lines
Diff to previous 1.15 (colored)

bye bye sleeper

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 4 23:25:56 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.14: +75 -52 lines
Diff to previous 1.14 (colored)

Wall's -g flag has been broken since it was added.  We fix it by
looking up each group specified via -g and stashing the members
so we can compare them against users listed in utmp later on.
Inspired by a patch from Ruslan Ermilov <ru@FreeBSD.org>.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 13 09:16:04 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

fat utmp fix; ianm@cit.uws.edu.au

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 7 17:23:26 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.12: +16 -10 lines
Diff to previous 1.12 (colored)

use err*() correct, and open file with egid; fyre@users.sourceforge.net

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 30 08:21:15 1999 UTC (24 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

correct mkstemp() failure checking

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 24 22:35:49 1999 UTC (25 years ago) by d
Branch: MAIN
Changes since 1.10: +6 -3 lines
Diff to previous 1.10 (colored)

show '(not a tty)' instead of '(null)' when wall is run with stderr not a tty. (e.g. when run from cron)

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 16 01:20:14 1998 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.9: +4 -5 lines
Diff to previous 1.9 (colored)

snprintf; dillon

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 19 03:09:16 1998 UTC (25 years, 6 months ago) by form
Branch: MAIN
Changes since 1.8: +16 -27 lines
Diff to previous 1.8 (colored)

fprintf(stderr, "wall: ..."); exit(1) -> errx(1, "...")

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:36 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 16 02:26:18 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible too

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 2 09:07:35 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +51 -4 lines
Diff to previous 1.5 (colored)

add -g group delivery option

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 26 10:28:22 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

VIS_NOSLASH

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 26 10:21:48 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +13 -6 lines
Diff to previous 1.3 (colored)

vis this baby

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 6 19:25:35 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +6 -5 lines
Diff to previous 1.2 (colored)

avoid buf oflow

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:42:48 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:51 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:51 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.