summaryrefslogtreecommitdiffstats
path: root/libexec/talkd
AgeCommit message (Collapse)AuthorFilesLines
2019-08-09Use NULL for second gettimeofday(2) argument; ok deraadt@ kettenis@cheloha1-5/+4
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt2-6/+6
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2017-05-25Xr inetd as a hint about what flavor of crazy you're dealing withtedu1-4/+5
2016-08-26Pull in <sys/time.h> for gettimeofday()guenther1-1/+2
ok deraadt@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2-7/+7
Feedback millert@ kettenis@
2016-02-05pledge(2) for talkd(8):mestre1-1/+6
rpath: fopen(3) _PATH_UTMP in read mode wpath/cpath: fopen(3) full_tty in write mode (w), which implies O_CREAT inet/dns: the intervening hosts in the conversation may be remote, or not, but since we will never know beforehand then it'll always need inet and dns to resolve the hostnames ok jca@ and also discussed with tb@
2016-02-01Remove unused headers and sort the remainingmestre5-36/+30
OK tb@
2015-11-25rename internally to ntalkd, after the binary; this way bothjmc1-8/+10
"man talkd" and "man ntalkd" work; issue reported by sobrado; fix from schwarze
2015-11-21remove mlinks for aliases: ntalkd, mfs, updatedbjmc1-2/+1
ok schwarze
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt4-11/+10
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)
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>schwarze1-9/+7
2014-10-08do not need a cast from void *deraadt1-2/+2
2014-01-21obvious .Pa fixes; found with mandocdb(8)schwarze1-4/+4
2013-11-27unsigned char for ctypederaadt1-2/+2
ok okan kettenis
2013-04-17do not mix concepts of gettimeofday(), tv_sec, and localtime() in aderaadt1-5/+2
useless fashion.
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt5-36/+5
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
2007-05-31convert to new .Dd format;jmc1-3/+3
2006-10-18do not name FILE * variables "fd" since it is confusingderaadt1-6/+6
2006-03-17fix a few off-by-ones; from NetBSD; ok deraadt@otto1-5/+5
2005-10-14Use queue macros instead of directly accessing fields. ok millert@ pat@otto1-7/+7
deraadt@
2004-11-09Avoid use after free(), slight optimization. From Patrick Latifi.otto1-12/+14
ok tom@ deraadt@
2004-08-08spacingderaadt1-3/+3
2004-03-10spacesderaadt4-19/+22
2004-03-10close file on error paths. from Patrick Latifitedu1-4/+8
2003-07-29spacesderaadt1-4/+4
2003-06-26simple protosderaadt1-4/+4
2003-06-11ansi cleanup; ok ian markusderaadt5-48/+25
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert7-48/+20
rescinded 22 July 1999. Proofed by myself and Theo.
2002-11-25avoid size_t -> int conversion. style nit for sizeof(). David Krauseitojun5-29/+29
2002-10-08sa_family on wire is network byteorder. from Alexander Yurchenko <grange@rt.mipt.ru>itojun1-3/+3
2002-09-25- "resposne" is used without initialization, so zero-fillitojun1-7/+15
- sendto(2) performed with osockaddr, so avoid that - reject anything other than AF_INET based on patch from xs@kittenz.org. deraadt/millert ok
2002-09-24Allocate vis_user on the stack instead of using malloc(). Thismillert1-4/+3
way we don't have to worry about malloc() failure. Also closes a memory leak since vis_user was never free()d. Lack of malloc() checking pointed out by Peter Werner.
2002-09-06use socklen_t more; henning okderaadt1-3/+4
2002-07-07typos/grammar/better wordsjufi1-3/+3
in comments.
2002-07-03 add a missing newline to an error message.vincent1-4/+4
from Jean-Francois Brousseau <krapht@secureops.com> ok deraadt@
2002-06-21o Use *_FILENO defines instead of numbersmillert1-6/+6
o Kill sockt global, it is not needed o Use STDOUT_FILENO as the 1st arg to sendto(). Previously we used sockt in sendto() which only worked because a) globals are intialized to 0 and b) inetd sets up fds 0-2 dup'd to the same thing so it didn't matter that we were sending to stdin, not stdout.
2002-05-22Fix last commit.millert1-4/+4
2002-05-22Fix some ut_line manipulation pointed out by Moritz Jodeit.millert1-7/+13
Fixes from Theo and myself.
2002-05-22typo; moritz@jodeit.orgderaadt1-3/+3
2002-05-22whack sprintfderaadt1-5/+5
2002-05-22strlcpy sprinklingderaadt2-15/+20
2002-05-21KNFderaadt1-7/+7
2002-05-16KNFderaadt1-7/+7
2002-02-19Fix gethostname() usage.mpech1-3/+3
deraadt@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert3-19/+19
2001-12-07kill more registers;mpech4-25/+25
millert@ ok
2001-07-08-Wallderaadt2-5/+5
2001-01-11save_errno in signal handlerderaadt1-2/+4
2000-10-10need more size to big_buf for line termination (\r\n).itojun1-3/+3
2000-07-06use %s with fprintfderaadt1-3/+3