summaryrefslogtreecommitdiffstats
path: root/libexec/talkd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL for second gettimeofday(2) argument; ok deraadt@ kettenis@cheloha2019-08-091-5/+4
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-282-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.
* Xr inetd as a hint about what flavor of crazy you're dealing withtedu2017-05-251-4/+5
|
* Pull in <sys/time.h> for gettimeofday()guenther2016-08-261-1/+2
| | | | ok deraadt@
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-162-7/+7
| | | | Feedback millert@ kettenis@
* pledge(2) for talkd(8):mestre2016-02-051-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@
* Remove unused headers and sort the remainingmestre2016-02-015-36/+30
| | | | OK tb@
* rename internally to ntalkd, after the binary; this way bothjmc2015-11-251-8/+10
| | | | | "man talkd" and "man ntalkd" work; issue reported by sobrado; fix from schwarze
* remove mlinks for aliases: ntalkd, mfs, updatedbjmc2015-11-211-2/+1
| | | | ok schwarze
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-164-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)
* remove .Tn; from Jan Stary <hans at stare dot cz>schwarze2015-01-151-9/+7
|
* do not need a cast from void *deraadt2014-10-081-2/+2
|
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-4/+4
|
* unsigned char for ctypederaadt2013-11-271-2/+2
| | | | ok okan kettenis
* do not mix concepts of gettimeofday(), tv_sec, and localtime() in aderaadt2013-04-171-5/+2
| | | | useless fashion.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-275-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
* convert to new .Dd format;jmc2007-05-311-3/+3
|
* do not name FILE * variables "fd" since it is confusingderaadt2006-10-181-6/+6
|
* fix a few off-by-ones; from NetBSD; ok deraadt@otto2006-03-171-5/+5
|
* Use queue macros instead of directly accessing fields. ok millert@ pat@otto2005-10-141-7/+7
| | | | deraadt@
* Avoid use after free(), slight optimization. From Patrick Latifi.otto2004-11-091-12/+14
| | | | ok tom@ deraadt@
* spacingderaadt2004-08-081-3/+3
|
* spacesderaadt2004-03-104-19/+22
|
* close file on error paths. from Patrick Latifitedu2004-03-101-4/+8
|
* spacesderaadt2003-07-291-4/+4
|
* simple protosderaadt2003-06-261-4/+4
|
* ansi cleanup; ok ian markusderaadt2003-06-115-48/+25
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-027-48/+20
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* avoid size_t -> int conversion. style nit for sizeof(). David Krauseitojun2002-11-255-29/+29
|
* sa_family on wire is network byteorder. from Alexander Yurchenko <grange@rt.mipt.ru>itojun2002-10-081-3/+3
|
* - "resposne" is used without initialization, so zero-fillitojun2002-09-251-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
* Allocate vis_user on the stack instead of using malloc(). Thismillert2002-09-241-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.
* use socklen_t more; henning okderaadt2002-09-061-3/+4
|
* typos/grammar/better wordsjufi2002-07-071-3/+3
| | | | in comments.
* add a missing newline to an error message.vincent2002-07-031-4/+4
| | | | | | from Jean-Francois Brousseau <krapht@secureops.com> ok deraadt@
* o Use *_FILENO defines instead of numbersmillert2002-06-211-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.
* Fix last commit.millert2002-05-221-4/+4
|
* Fix some ut_line manipulation pointed out by Moritz Jodeit.millert2002-05-221-7/+13
| | | | Fixes from Theo and myself.
* typo; moritz@jodeit.orgderaadt2002-05-221-3/+3
|
* whack sprintfderaadt2002-05-221-5/+5
|
* strlcpy sprinklingderaadt2002-05-222-15/+20
|
* KNFderaadt2002-05-211-7/+7
|
* KNFderaadt2002-05-161-7/+7
|
* Fix gethostname() usage.mpech2002-02-191-3/+3
| | | | deraadt@ ok
* Part 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.millert2002-02-163-19/+19
|
* kill more registers;mpech2001-12-074-25/+25
| | | | millert@ ok
* -Wallderaadt2001-07-082-5/+5
|
* save_errno in signal handlerderaadt2001-01-111-2/+4
|
* need more size to big_buf for line termination (\r\n).itojun2000-10-101-3/+3
|
* use %s with fprintfderaadt2000-07-061-3/+3
|