summaryrefslogtreecommitdiff
path: root/usr.bin/write/write.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-09-18Use user_from_uid(3) if getlogin(2) fails, storing the uid as aTodd C. Miller
2016-02-05Make write explicitly ASCII only by transforming UTF-8 characters and non-ASCIImartijn
2015-10-20Fix write to other user's tty. The device has to be opened withAlexander Bluhm
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-06unfortunately tame "stdio" can only happen well after the sequence of:Theo de Raadt
2015-10-05Since the dawn of time, this has contained freopen() for the tty pathTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2013-04-16remove casts to time_t * which are not neededTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-07-06sync synopsis and usage.Igor Sobrado
2006-10-04if the utmp file is (mysteriously gone) do not assume that the user isTheo de Raadt
2005-07-04make these use setres[ug]id for simple privilege dropping;Damien Miller
2003-07-10add missing includesDavid Krause
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-03-13a few more strlcpyTheo de Raadt
2002-12-09do not use sys/types.h and sys/param.h together; andrushock@korovino.netTheo de Raadt
2002-08-04ansi, and revoke privs after opening the ttyTheo de Raadt
2002-02-21use sizeof w/ defines; niklas@ millert@ ok.Federico G. Schwindt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-11-19kill more registersMike Pechkin
2001-11-02avoid stdio in signal handlerTheo de Raadt
2001-06-27-Wall cleanup; ok millert@jasoni
2001-01-19mark remaining signal races which are difficult to fix, and fix a few partiallyTheo de Raadt
1999-02-21vis() buf overflowTheo de Raadt
1998-07-06kill non-POSIX S_IWRITETheo de Raadt
1996-10-26missed one change, pointed out by Alex Nash <nash@mcs.net>Jason Downs
1996-10-25kill sprintf, use paths.hJason Downs
1996-08-26VIS_NOSLASHTheo de Raadt
1996-08-26vis this baby tooTheo de Raadt
1996-06-26rcsidTheo de Raadt
1995-11-17handle meta characters; good security idea from freebsdTheo de Raadt
1995-10-23warn if my permissions are off; but still allow a writeTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt