summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* briefly mention /etc/examples/ in the FILES section of all theschwarze2020-02-101-4/+8
| | | | | manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-18/+18
| | | | | | 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.
* struct sockaddr_storage is guaranteed to be large enough, no need to checkflorian2018-10-151-4/+1
| | | | | the size. OK kn, deraadt
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-3/+1
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* Fix pledge(2) usagejca2017-10-041-11/+5
| | | | | | | | | We should not try to tighten pledge promises in the master inetd process, since those are needed to reload the configuration. Only tighten down if 1) we have forked 2) we're running one of the builtin routines, which are dealing with network input. Pointed out by and ok benno@
* Don't try to handle IPv4-compatible IPv6 addressesjca2017-10-041-10/+5
| | | | ok florian@ millert@
* inetd actually supports stream and datagram sockets onlyjca2017-10-042-18/+8
| | | | ok deraadt@
* inetd needs cpath pledge to unlink unix socket at program termination.benno2017-10-041-3/+8
| | | | | From Anthony Coulter - thanks! ok jca@
* remove lint commentstedu2016-08-251-11/+1
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-2/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Remove a (now) obsolete comment about shortened IPv4 syntaxmestre2016-03-161-2/+1
| | | | OK deraadt@ jca@
* Replace strncpy(3) calls for safer strlcpy(3)mestre2016-03-161-7/+5
| | | | OK deraadt@ jca@
* Replace atoi(3) calls for safer strtonum(3)mestre2016-03-161-7/+11
| | | | OK deeradt@ jca@
* remove a NULL-check before free()mmcc2015-12-221-3/+2
|
* these files document their config files too: adjust NAME accordingly;jmc2015-11-141-3/+4
| | | | ok schwarze
* needs pledge "cpath" to allow unlink of AF_UNIX sockets eventuallyderaadt2015-11-011-2/+2
|
* inetd needs pledge "unix" to bind AF_UNIX socketsderaadt2015-11-011-2/+2
|
* pledge "abort" left behind accidentallyderaadt2015-10-221-3/+3
|
* optarg and optind are declared by unistd.hjca2015-10-191-3/+1
|
* Add err.h, missing after pledge() introduction.jca2015-10-191-1/+2
|
* Make use of pledge(2); initial diff from deraadt@jca2015-10-181-2/+9
| | | | | As Theo says, there's probably room for stricter pledge requests, but this would involve refactoring.
* actually, it uses getaddrinfoderaadt2015-10-181-3/+3
|
* reduce .Nd to one line and kill .Tn while hereschwarze2015-09-101-4/+3
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-4/+6
| | | | | | | | | 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)
* replace the use of select and hand rolled deferral of signal handlingdlg2014-10-292-210/+75
| | | | | | | | | | with libevent. this has been in snaps for a while without any negative (or positive) feedback. review and tweaks by bluhm@ nicm@ ok bluhm@ deraadt@
* jmc@ told me i broke the documentation. inetd doesnt write a pidfile sodlg2014-10-131-6/+2
| | | | we shouldnt say it does.
* dont need to store the same debug flag in two separate variables.dlg2014-10-131-4/+2
| | | | ok millert@ deraadt@
* ansi function declarations.dlg2014-10-121-4/+2
| | | | ok gcc+sha256
* cut out writing a pidfile. rc.d doesnt rely on it, and nor should you.dlg2014-10-122-17/+2
| | | | | both bcook@ and schwartz@ suggested removing the pidfil unlink and path ok sthen@ schwartz@
* Convert malloc/memset to calloc, and remove pointless casts while here.lteo2014-06-171-11/+7
| | | | From Benjamin Baier.
* remove references to rshd;jmc2014-04-181-3/+2
|
* obvious unsigned char casts for ctypederaadt2013-11-231-4/+6
|
* missing protosderaadt2013-11-121-1/+7
|
* for datagrams, assume other protocols should failderaadt2013-04-191-3/+3
| | | | ok millert
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-4/+5
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* small cleanup(%hd -> %d)gsoares2012-04-191-2/+2
| | | | yes deraadt@
* clean up some newly created lies now that tftpd doesnt run out of inetd.dlg2012-03-061-13/+3
| | | | poke by deraadt@
* replace a few remaining UNIX terms with .Ux macros; this diffsobrado2009-12-291-6/+5
| | | | completes the changes from Oct 22.
* we have closefrom(2), so use it; ok deraadt@ tedu@otto2009-11-021-3/+2
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-12/+1
| | | | | | | 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
* Do not use __progname in inetd as it is not portable. Instead hardcode it toclaudio2008-07-281-10/+6
| | | | | "inetd" in the few locations that print out the program name. requested and OK deraadt@
* Use __progname instead of hand rolled version using argv[0].claudio2008-07-271-11/+8
| | | | | Diff from Gleydson Soares gsoares at gmail dot com OK millert@
* add an underscore to argument name.sobrado2008-06-282-6/+6
|
* adderss -> addressmiod2008-06-041-3/+3
|
* validate argv, okay otto@, henning@espie2008-01-251-2/+7
|
* remove out of date/irrelevant section of BUGS dealing with ip6;jmc2008-01-061-7/+1
| | | | ok deraadt
* - document what happens when a service exceeds its max spawn rate. this isjmc2008-01-061-9/+16
| | | | | | | based on a diff from reed@netbsd, but i chose a different fix - whilst here, make the descriptions of -R and .max more consistent ok sthen sobrado(in part, at least)
* sync usage() w/ SYNOPSIS;jmc2008-01-051-3/+4
|
* use strcspn to properly overwrite '\n' in fgets returned buffergilles2007-09-111-7/+3
| | | | ok pyr@, ray@, millert@, moritz@, chl@
* convert to new .Dd format;jmc2007-05-311-2/+2
|