summaryrefslogtreecommitdiff
path: root/usr.sbin/inetd/inetd.c
AgeCommit message (Expand)Author
2020-12-30getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-10-15struct sockaddr_storage is guaranteed to be large enough, no need to checkFlorian Obser
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
2017-10-04Fix pledge(2) usageJeremie Courreges-Anglas
2017-10-04Don't try to handle IPv4-compatible IPv6 addressesJeremie Courreges-Anglas
2017-10-04inetd actually supports stream and datagram sockets onlyJeremie Courreges-Anglas
2017-10-04inetd needs cpath pledge to unlink unix socket at program termination.Sebastian Benoit
2016-08-25remove lint commentsTed Unangst
2016-03-16Remove a (now) obsolete comment about shortened IPv4 syntaxmestre
2016-03-16Replace strncpy(3) calls for safer strlcpy(3)mestre
2016-03-16Replace atoi(3) calls for safer strtonum(3)mestre
2015-12-22remove a NULL-check before free()mmcc
2015-11-01needs pledge "cpath" to allow unlink of AF_UNIX sockets eventuallyTheo de Raadt
2015-11-01inetd needs pledge "unix" to bind AF_UNIX socketsTheo de Raadt
2015-10-22pledge "abort" left behind accidentallyTheo de Raadt
2015-10-19optarg and optind are declared by unistd.hJeremie Courreges-Anglas
2015-10-19Add err.h, missing after pledge() introduction.Jeremie Courreges-Anglas
2015-10-18Make use of pledge(2); initial diff from deraadt@Jeremie Courreges-Anglas
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-10-29replace the use of select and hand rolled deferral of signal handlingDavid Gwynne
2014-10-13dont need to store the same debug flag in two separate variables.David Gwynne
2014-10-12ansi function declarations.David Gwynne
2014-10-12cut out writing a pidfile. rc.d doesnt rely on it, and nor should you.David Gwynne
2014-06-17Convert malloc/memset to calloc, and remove pointless casts while here.Lawrence Teo
2013-11-23obvious unsigned char casts for ctypeTheo de Raadt
2013-11-12missing protosTheo de Raadt
2013-04-19for datagrams, assume other protocols should failTheo de Raadt
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
2012-04-19small cleanup(%hd -> %d)Gleydson Soares
2009-11-02we have closefrom(2), so use it; ok deraadt@ tedu@Otto Moerbeek
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-07-28Do not use __progname in inetd as it is not portable. Instead hardcode it toClaudio Jeker
2008-07-27Use __progname instead of hand rolled version using argv[0].Claudio Jeker
2008-06-28add an underscore to argument name.Igor Sobrado
2008-06-04adderss -> addressMiod Vallat
2008-01-25validate argv, okay otto@, henning@Marc Espie
2008-01-05sync usage() w/ SYNOPSIS;Jason McIntyre
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
2005-04-02Create unix domain sockets with permissions 0666, so clients canOtto Moerbeek
2004-09-15if (signalflag) { dowork(); signalflag = 0; } is a race. First clear flag,Otto Moerbeek
2004-09-14remove gcc specific extensions, and ARGSUSED where usefulTheo de Raadt
2004-09-06Reset signal mask in the rate limiting case; check for interruptedOtto Moerbeek
2004-07-28Should set user and group on unix domain sockets as reported by Juan Vera.Todd C. Miller
2004-06-30Unbreak unix domain sockets and properly detect and report truncationOtto Moerbeek
2004-04-24Don't return NULL in getconfigent() when an unresolvable hostnameTodd C. Miller
2004-03-31For non-internal services, if no program arguments are specified useTodd C. Miller
2004-01-06Fix signal handling when there is an error in inetd.conf. Found byTodd C. Miller
2003-12-23Remove unnecessary casts (char *).Mike Pechkin
2003-10-24dont compare int to NULL, millert@ okAnil Madhavapeddy