Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | briefly mention /etc/examples/ in the FILES section of all the | schwarze | 2020-02-10 | 1 | -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 arbitrary | deraadt | 2019-06-28 | 1 | -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 check | florian | 2018-10-15 | 1 | -4/+1 |
| | | | | | the size. OK kn, deraadt | ||||
* | Use <fcntl.h> instead of <sys/file.h> for open() and friends. | guenther | 2018-04-26 | 1 | -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) usage | jca | 2017-10-04 | 1 | -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 addresses | jca | 2017-10-04 | 1 | -10/+5 |
| | | | | ok florian@ millert@ | ||||
* | inetd actually supports stream and datagram sockets only | jca | 2017-10-04 | 2 | -18/+8 |
| | | | | ok deraadt@ | ||||
* | inetd needs cpath pledge to unlink unix socket at program termination. | benno | 2017-10-04 | 1 | -3/+8 |
| | | | | | From Anthony Coulter - thanks! ok jca@ | ||||
* | remove lint comments | tedu | 2016-08-25 | 1 | -11/+1 |
| | |||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 1 | -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 syntax | mestre | 2016-03-16 | 1 | -2/+1 |
| | | | | OK deraadt@ jca@ | ||||
* | Replace strncpy(3) calls for safer strlcpy(3) | mestre | 2016-03-16 | 1 | -7/+5 |
| | | | | OK deraadt@ jca@ | ||||
* | Replace atoi(3) calls for safer strtonum(3) | mestre | 2016-03-16 | 1 | -7/+11 |
| | | | | OK deeradt@ jca@ | ||||
* | remove a NULL-check before free() | mmcc | 2015-12-22 | 1 | -3/+2 |
| | |||||
* | these files document their config files too: adjust NAME accordingly; | jmc | 2015-11-14 | 1 | -3/+4 |
| | | | | ok schwarze | ||||
* | needs pledge "cpath" to allow unlink of AF_UNIX sockets eventually | deraadt | 2015-11-01 | 1 | -2/+2 |
| | |||||
* | inetd needs pledge "unix" to bind AF_UNIX sockets | deraadt | 2015-11-01 | 1 | -2/+2 |
| | |||||
* | pledge "abort" left behind accidentally | deraadt | 2015-10-22 | 1 | -3/+3 |
| | |||||
* | optarg and optind are declared by unistd.h | jca | 2015-10-19 | 1 | -3/+1 |
| | |||||
* | Add err.h, missing after pledge() introduction. | jca | 2015-10-19 | 1 | -1/+2 |
| | |||||
* | Make use of pledge(2); initial diff from deraadt@ | jca | 2015-10-18 | 1 | -2/+9 |
| | | | | | As Theo says, there's probably room for stricter pledge requests, but this would involve refactoring. | ||||
* | actually, it uses getaddrinfo | deraadt | 2015-10-18 | 1 | -3/+3 |
| | |||||
* | reduce .Nd to one line and kill .Tn while here | schwarze | 2015-09-10 | 1 | -4/+3 |
| | |||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | deraadt | 2015-01-16 | 1 | -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 handling | dlg | 2014-10-29 | 2 | -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 so | dlg | 2014-10-13 | 1 | -6/+2 |
| | | | | we shouldnt say it does. | ||||
* | dont need to store the same debug flag in two separate variables. | dlg | 2014-10-13 | 1 | -4/+2 |
| | | | | ok millert@ deraadt@ | ||||
* | ansi function declarations. | dlg | 2014-10-12 | 1 | -4/+2 |
| | | | | ok gcc+sha256 | ||||
* | cut out writing a pidfile. rc.d doesnt rely on it, and nor should you. | dlg | 2014-10-12 | 2 | -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. | lteo | 2014-06-17 | 1 | -11/+7 |
| | | | | From Benjamin Baier. | ||||
* | remove references to rshd; | jmc | 2014-04-18 | 1 | -3/+2 |
| | |||||
* | obvious unsigned char casts for ctype | deraadt | 2013-11-23 | 1 | -4/+6 |
| | |||||
* | missing protos | deraadt | 2013-11-12 | 1 | -1/+7 |
| | |||||
* | for datagrams, assume other protocols should fail | deraadt | 2013-04-19 | 1 | -3/+3 |
| | | | | ok millert | ||||
* | handle ECONNABORTED errors from accept(). In many code blocks they can be | deraadt | 2013-03-11 | 1 | -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) | gsoares | 2012-04-19 | 1 | -2/+2 |
| | | | | yes deraadt@ | ||||
* | clean up some newly created lies now that tftpd doesnt run out of inetd. | dlg | 2012-03-06 | 1 | -13/+3 |
| | | | | poke by deraadt@ | ||||
* | replace a few remaining UNIX terms with .Ux macros; this diff | sobrado | 2009-12-29 | 1 | -6/+5 |
| | | | | completes the changes from Oct 22. | ||||
* | we have closefrom(2), so use it; ok deraadt@ tedu@ | otto | 2009-11-02 | 1 | -3/+2 |
| | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | deraadt | 2009-10-27 | 1 | -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 to | claudio | 2008-07-28 | 1 | -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]. | claudio | 2008-07-27 | 1 | -11/+8 |
| | | | | | Diff from Gleydson Soares gsoares at gmail dot com OK millert@ | ||||
* | add an underscore to argument name. | sobrado | 2008-06-28 | 2 | -6/+6 |
| | |||||
* | adderss -> address | miod | 2008-06-04 | 1 | -3/+3 |
| | |||||
* | validate argv, okay otto@, henning@ | espie | 2008-01-25 | 1 | -2/+7 |
| | |||||
* | remove out of date/irrelevant section of BUGS dealing with ip6; | jmc | 2008-01-06 | 1 | -7/+1 |
| | | | | ok deraadt | ||||
* | - document what happens when a service exceeds its max spawn rate. this is | jmc | 2008-01-06 | 1 | -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; | jmc | 2008-01-05 | 1 | -3/+4 |
| | |||||
* | use strcspn to properly overwrite '\n' in fgets returned buffer | gilles | 2007-09-11 | 1 | -7/+3 |
| | | | | ok pyr@, ray@, millert@, moritz@, chl@ | ||||
* | convert to new .Dd format; | jmc | 2007-05-31 | 1 | -2/+2 |
| |