History log of /src/usr.bin/write |
Revision | Date | Author | Comments |
1.8 | 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.7 | 20-Apr-2003 |
christos | separate the term check stuff.
|
1.6 | 18-Sep-2002 |
lukem | makefile delint. use NETBSDSRCDIR as appropriate
|
1.5 | 02-Aug-2002 |
christos | utmpx support.
|
1.4 | 09-Jan-1997 |
tls | RCS ID police
|
1.3 | 19-Sep-1994 |
mycroft | Update to 4.4-Lite version, converted to use err*(3) and warn*(3).
|
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 | 19-Sep-1994 |
mycroft | Import original 4.4-Lite version.
|
1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.8 | 14-Apr-2009 |
lukem | fix sign-compare issue
|
1.7 | 30-Nov-2004 |
christos | branches: 1.7.36; PR/28474: Geoff C. Wing: write does some weird checking and can't handle ptyfs
|
1.6 | 27-Oct-2004 |
christos | make the atime and msgok optional. If we did not request atime, then we don't want strict checking and in this case if the tty is not found we don't exit. write calls this with atime != NULL and wall calls this with atime == NULL.
|
1.5 | 26-Oct-2004 |
christos | Allow root to write even if it does not have a tty.
|
1.4 | 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.3 | 13-May-2003 |
christos | PR/21568: Martin Husemann: Shutdown gets permission denied error from wall
|
1.2 | 03-May-2003 |
christos | improve error handling and knf.
|
1.1 | 20-Apr-2003 |
christos | separate the term check stuff.
|
1.7.36.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
|
1.2 | 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.1 | 20-Apr-2003 |
christos | separate the term check stuff.
|
1.7 | 01-Sep-2019 |
sevan | write was in v1 https://www.bell-labs.com/usr/dmr/www/man14.pdf
|
1.6 | 07-Aug-2003 |
agc | branches: 1.6.98; 1.6.100; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.5 | 19-Oct-1997 |
mrg | WARNSify; clean up .Nm
|
1.4 | 09-Jan-1997 |
tls | RCS ID police
|
1.3 | 19-Sep-1994 |
mycroft | Update to 4.4-Lite version, converted to use err*(3) and warn*(3).
|
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 | 19-Sep-1994 |
mycroft | Import original 4.4-Lite version.
|
1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.6.100.1 | 05-Sep-2019 |
martin | Pull up following revision(s) (requested by sevan in ticket #174): lib/libc/sys/chmod.2: revision 1.48 lib/libc/sys/stat.2: revision 1.59 lib/libc/sys/unlink.2: revision 1.30 lib/libc/sys/lseek.2: revision 1.25 lib/libc/sys/getuid.2: revision 1.18 lib/libc/sys/chown.2: revision 1.37 lib/libm/man/exp.3: revision 1.32 lib/libm/man/log.3: revision 1.7 lib/libc/sys/open.2: revision 1.60 lib/libc/stdio/fopen.3: revision 1.36 lib/libc/stdio/putc.3: revision 1.14 lib/libc/sys/mount.2: revision 1.51 share/man/man9/copy.9: revision 1.22 share/man/man9/uiomove.9: revision 1.20 lib/libc/sys/setuid.2: revision 1.23 lib/libc/sys/close.2: revision 1.18 sbin/init/init.8: revision 1.61 lib/libc/sys/write.2: revision 1.36 lib/libc/sys/read.2: revision 1.39 sbin/init/init.8: revision 1.62 lib/libc/sys/wait.2: revision 1.40 usr.bin/tty/tty.1: revision 1.10 lib/libc/sys/link.2: revision 1.33 usr.bin/du/du.1: revision 1.24 lib/libc/stdlib/exit.3: revision 1.17 usr.bin/su/su.1: revision 1.53 usr.bin/mail/mail.1: revision 1.66 lib/libc/sys/fork.2: revision 1.25 usr.bin/su/su.1: revision 1.54 usr.bin/mail/mail.1: revision 1.67 lib/libm/man/sin.3: revision 1.15 share/man/man9/intro.9: revision 1.26 share/man/man5/utmp.5: revision 1.17 lib/libc/compat-43/creat.3: revision 1.17 lib/libc/time/ctime.3: revision 1.61 lib/libcompat/4.1/stty.3: revision 1.10 usr.bin/dc/dc.1: revision 1.3 lib/libm/man/cos.3: revision 1.17 lib/libc/sys/chdir.2: revision 1.23 lib/libc/gen/exec.3: revision 1.30 lib/libc/gen/exec.3: revision 1.31 games/bcd/bcd.6: revision 1.18 games/bcd/bcd.6: revision 1.19 usr.bin/write/write.1: revision 1.7 usr.bin/wc/wc.1: revision 1.18 usr.bin/pr/pr.1: revision 1.24 usr.bin/who/who.1: revision 1.25 lib/libc/sys/mkdir.2: revision 1.30 lib/libc/stdio/getc.3: revision 1.13 usr.bin/sort/sort.1: revision 1.40 usr.bin/mesg/mesg.1: revision 1.11 share/man/man5/passwd.5: revision 1.34 sort was there since v1 https://www.bell-labs.com/usr/dmr/www/man61.pdf
dc was in v1 https://www.bell-labs.com/usr/dmr/www/man12.pdf
du was in v1 https://www.bell-labs.com/usr/dmr/www/man12.pdf
mail was in v1 https://www.bell-labs.com/usr/dmr/www/man12.pdf
mesg was in v1 https://www.bell-labs.com/usr/dmr/www/man12.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man13.pdf
su was in v1 https://www.bell-labs.com/usr/dmr/www/man13.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man13.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man14.pdf Update URL
write was in v1 https://www.bell-labs.com/usr/dmr/www/man14.pdf grammar
passwd(5) was in v1 https://www.bell-labs.com/usr/dmr/www/man51.pdf
utmp(5) was present in v1 https://www.bell-labs.com/usr/dmr/www/man51.pdf
Earliest version of wtmp I could find was in v3 https://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man5/wtmp.5
Document history of chdir(2) https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history of chmod(2) https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history of chown(2) https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man21.pdf
create was present in v1 https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history of exec() Move statement on execlpe() & execvpe() to HISTORY section.
Document history https://www.bell-labs.com/usr/dmr/www/man21.pdf
fork was present in v1 https://www.bell-labs.com/usr/dmr/www/man21.pdf stat() was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
document history of fstat() https://www.bell-labs.com/usr/dmr/www/man21.pdf
getuid was present in v1 https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man21.pdf
Document history https://www.bell-labs.com/usr/dmr/www/man21.pdf
stty & gtty were around since v1 https://www.bell-labs.com/usr/dmr/www/man21.pdf https://www.bell-labs.com/usr/dmr/www/man22.pdf
mount & umount were present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
Open was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
read was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
seek was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
setuid was in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
unlink was presen in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
wait was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
write was present in v1 https://www.bell-labs.com/usr/dmr/www/man22.pdf
start documenting history exp was present in v1 https://www.bell-labs.com/usr/dmr/www/man31.pdf
Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf
Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf
log appeared in v1 https://www.bell-labs.com/usr/dmr/www/man31.pdf
putc & putw were in v1 https://www.bell-labs.com/usr/dmr/www/man31.pdf
putchar was in v4 https://minie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/putchr.3
Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf
Document history. https://www.bell-labs.com/usr/dmr/www/man11.pdf Between v1 & v6 UNIX, bcd was rewritten in C, but I don't know if which version, hence I've skipped mentioning it. End sentence with a dot. Remove superfluous Pp. Remove superfluous Pp. Remove superfluous Ns. Remove superfluous Pp. fetch(9) -> ufetch(9) fetch(9) -> ufetch(9). Remove superfluous Pp. fetch(9) -> ufetch(9). Remove reference to unimplemented ppi(9).
|
1.6.98.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.27 | 06-Sep-2011 |
joerg | static + __dead
|
1.26 | 31-Aug-2011 |
plunky | NULL does not need a cast
|
1.25 | 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.24 | 17-Jun-2006 |
elad | branches: 1.24.20; strncpy -> strlcpy
|
1.23 | 07-Aug-2003 |
agc | branches: 1.23.12; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.22 | 20-Apr-2003 |
christos | separate the term check stuff.
|
1.21 | 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.20 | 02-Aug-2002 |
christos | utmpx support.
|
1.19 | 03-Jan-2001 |
mjl | un__Pify, ANSIfy and constify.
|
1.18 | 03-Jan-2001 |
mjl | /dev -> _PATH_DEV
|
1.17 | 03-Jul-2000 |
matt | Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, etc. as appropriate to get exit,srncmp,abs,abort,etc. Add -I${.CURDIR} to a few Makefiles
|
1.16 | 09-Nov-1999 |
drochner | Since our gcc doesn't warn about NULL format strings anymore, we can fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
|
1.15 | 20-Dec-1998 |
christos | branches: 1.15.6; char -> unsigned char
|
1.14 | 25-Aug-1998 |
ross | Add { and } to shut up egcs. Reformat the more questionable code.
|
1.13 | 26-Jul-1998 |
mycroft | const poisoning.
|
1.12 | 06-Jul-1998 |
mrg | KNF. use S_IWGRP instead of homegrown crap. ensure tty buffer is nul-terminated.
|
1.11 | 06-Jul-1998 |
mrg | - use an array MAXHOSTNAMELEN+1 size to hold hostnames - ensure hostname from gethostname() is nul-terminated in all cases - minor KNF - use MAXHOSTNAMELEN over various other values/defines - be safe will buffers that hold hostnames
|
1.10 | 20-Oct-1997 |
lukem | deprecate register
|
1.9 | 19-Oct-1997 |
mrg | WARNSify; clean up .Nm
|
1.8 | 11-Feb-1997 |
mrg | remove possibly dangerous sprintf and strcpy calls.
|
1.7 | 20-Jan-1997 |
explorer | sprintf -> snprintf, from David A. Holland <dholland@eecs.harvard.edu>
|
1.6 | 17-Jan-1997 |
perry | fix write to print a warning if the sender has "mesg n" set, instead of dying with an error. From Mark Weaver closes pr-355, per thorpej
|
1.5 | 31-Aug-1995 |
jtc | branches: 1.5.6; sync with 4.4lite2
|
1.4 | 21-Dec-1994 |
jtc | misc cleanup by jimj and myself.
|
1.3 | 19-Sep-1994 |
mycroft | Update to 4.4-Lite version, converted to use err*(3) and warn*(3).
|
1.2 | 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 | 31-Aug-1995 |
jtc | imported from 44lite2
|
1.1.1.2 | 19-Sep-1994 |
mycroft | Import original 4.4-Lite version.
|
1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.5.6.1 | 26-Jan-1997 |
rat | Pullup 1.6 -> 1.7 by request from Michael Graff. Fixes a security bug in which write could be fooled into giving away "tty".
|
1.15.6.1 | 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.23.12.1 | 19-Jun-2006 |
chap | Sync with head.
|
1.24.20.1 | 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|