OpenBSD CVS

CVS log for src/usr.sbin/inetd/inetd.c


[BACK] Up to [local] / src / usr.sbin / inetd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.165 / (download) - annotate - [select for diffs], Sun Sep 3 22:01:00 2023 UTC (8 months, 4 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.164: +2 -2 lines
Diff to previous 1.164 (colored)

Allow UDP for built-in inetd(8) services on 127.0.0.1.

This restriction was added in year 2000 due to IPv6 compatible and
mapped addresses.  Nowadays our kernel does not support these IPv6
features and blocks localhost addresses on non-loopback interfaces.
Make IPv4 127.0.0.1/8 and IPv6 ::1 behave identically and provide
local services if configured.

OK mvs@ deraadt@

Revision 1.164 / (download) - annotate - [select for diffs], Wed Apr 19 12:58:16 2023 UTC (13 months, 1 week ago) by jsg
Branch: MAIN
Changes since 1.163: +1 -2 lines
Diff to previous 1.163 (colored)

remove duplicate includes

Revision 1.163 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:50 2022 UTC (17 months, 3 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.162: +1 -2 lines
Diff to previous 1.162 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.162 / (download) - annotate - [select for diffs], Wed Dec 30 18:41:06 2020 UTC (3 years, 5 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.161: +3 -2 lines
Diff to previous 1.161 (colored)

getifaddrs() can return entries where ifa_addr is NULL. Check for this
before accessing anything in ifa_addr.
ok claudio@

Revision 1.161 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:48 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.160: +18 -18 lines
Diff to previous 1.160 (colored)

When system calls indicate an error they return -1, not some arbitrary
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.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Oct 15 11:29:27 2018 UTC (5 years, 7 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.159: +1 -4 lines
Diff to previous 1.159 (colored)

struct sockaddr_storage is guaranteed to be large enough, no need to check
the size.
OK kn, deraadt

Revision 1.159 / (download) - annotate - [select for diffs], Thu Apr 26 12:42:51 2018 UTC (6 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.158: +1 -3 lines
Diff to previous 1.158 (colored)

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@

Revision 1.158 / (download) - annotate - [select for diffs], Wed Oct 4 23:56:48 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.157: +5 -11 lines
Diff to previous 1.157 (colored)

Fix pledge(2) usage

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@

Revision 1.157 / (download) - annotate - [select for diffs], Wed Oct 4 20:15:52 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.156: +5 -10 lines
Diff to previous 1.156 (colored)

Don't try to handle IPv4-compatible IPv6 addresses

ok florian@ millert@

Revision 1.156 / (download) - annotate - [select for diffs], Wed Oct 4 19:52:26 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.155: +3 -9 lines
Diff to previous 1.155 (colored)

inetd actually supports stream and datagram sockets only

ok deraadt@

Revision 1.155 / (download) - annotate - [select for diffs], Wed Oct 4 18:08:26 2017 UTC (6 years, 7 months ago) by benno
Branch: MAIN
Changes since 1.154: +8 -3 lines
Diff to previous 1.154 (colored)

inetd needs cpath pledge to unlink unix socket at program termination.
From Anthony Coulter - thanks!
ok jca@

Revision 1.154 / (download) - annotate - [select for diffs], Thu Aug 25 05:23:19 2016 UTC (7 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.153: +1 -11 lines
Diff to previous 1.153 (colored)

remove lint comments

Revision 1.153 / (download) - annotate - [select for diffs], Wed Mar 16 20:16:39 2016 UTC (8 years, 2 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.152: +1 -2 lines
Diff to previous 1.152 (colored)

Remove a (now) obsolete comment about shortened IPv4 syntax

OK deraadt@ jca@

Revision 1.152 / (download) - annotate - [select for diffs], Wed Mar 16 20:15:15 2016 UTC (8 years, 2 months ago) by mestre
Branch: MAIN
Changes since 1.151: +5 -7 lines
Diff to previous 1.151 (colored)

Replace strncpy(3) calls for safer strlcpy(3)

OK deraadt@ jca@

Revision 1.151 / (download) - annotate - [select for diffs], Wed Mar 16 20:09:58 2016 UTC (8 years, 2 months ago) by mestre
Branch: MAIN
Changes since 1.150: +11 -7 lines
Diff to previous 1.150 (colored)

Replace atoi(3) calls for safer strtonum(3)

OK deeradt@ jca@

Revision 1.150 / (download) - annotate - [select for diffs], Tue Dec 22 19:44:01 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.149: +2 -3 lines
Diff to previous 1.149 (colored)

remove a NULL-check before free()

Revision 1.149 / (download) - annotate - [select for diffs], Sun Nov 1 19:59:28 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored)

needs pledge "cpath" to allow unlink of AF_UNIX sockets eventually

Revision 1.148 / (download) - annotate - [select for diffs], Sun Nov 1 00:31:18 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)

inetd needs pledge "unix" to bind AF_UNIX sockets

Revision 1.147 / (download) - annotate - [select for diffs], Thu Oct 22 12:34:25 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)

pledge "abort" left behind accidentally

Revision 1.146 / (download) - annotate - [select for diffs], Mon Oct 19 11:52:51 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.145: +1 -3 lines
Diff to previous 1.145 (colored)

optarg and optind are declared by unistd.h

Revision 1.145 / (download) - annotate - [select for diffs], Mon Oct 19 11:51:17 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.144: +2 -1 lines
Diff to previous 1.144 (colored)

Add err.h, missing after pledge() introduction.

Revision 1.144 / (download) - annotate - [select for diffs], Sun Oct 18 16:11:19 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.143: +9 -2 lines
Diff to previous 1.143 (colored)

Make use of pledge(2); initial diff from deraadt@

As Theo says, there's probably room for stricter pledge requests, but
this would involve refactoring.

Revision 1.143 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:17 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.142: +6 -4 lines
Diff to previous 1.142 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.142 / (download) - annotate - [select for diffs], Wed Oct 29 03:33:14 2014 UTC (9 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.141: +71 -208 lines
Diff to previous 1.141 (colored)

replace the use of select and hand rolled deferral of signal handling
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@

Revision 1.141 / (download) - annotate - [select for diffs], Mon Oct 13 01:53:14 2014 UTC (9 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.140: +2 -4 lines
Diff to previous 1.140 (colored)

dont need to store the same debug flag in two separate variables.

ok millert@ deraadt@

Revision 1.140 / (download) - annotate - [select for diffs], Sun Oct 12 09:36:42 2014 UTC (9 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.139: +2 -4 lines
Diff to previous 1.139 (colored)

ansi function declarations.

ok gcc+sha256

Revision 1.139 / (download) - annotate - [select for diffs], Sun Oct 12 08:55:25 2014 UTC (9 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.138: +1 -15 lines
Diff to previous 1.138 (colored)

cut out writing a pidfile. rc.d doesnt rely on it, and nor should you.

both bcook@ and schwartz@ suggested removing the pidfil unlink and path
ok sthen@ schwartz@

Revision 1.138 / (download) - annotate - [select for diffs], Tue Jun 17 03:12:37 2014 UTC (9 years, 11 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.137: +7 -11 lines
Diff to previous 1.137 (colored)

Convert malloc/memset to calloc, and remove pointless casts while here.

From Benjamin Baier.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Nov 23 17:24:29 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.136: +6 -4 lines
Diff to previous 1.136 (colored)

obvious unsigned char casts for ctype

Revision 1.136 / (download) - annotate - [select for diffs], Tue Nov 12 19:44:44 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.135: +7 -1 lines
Diff to previous 1.135 (colored)

missing protos

Revision 1.135 / (download) - annotate - [select for diffs], Fri Apr 19 18:03:16 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

for datagrams, assume other protocols should fail
ok millert

Revision 1.134 / (download) - annotate - [select for diffs], Mon Mar 11 17:40:11 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.133: +5 -4 lines
Diff to previous 1.133 (colored)

handle ECONNABORTED errors from accept().  In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...

Revision 1.133 / (download) - annotate - [select for diffs], Thu Apr 19 14:33:24 2012 UTC (12 years, 1 month ago) by gsoares
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

small cleanup(%hd -> %d)

yes deraadt@

Revision 1.132 / (download) - annotate - [select for diffs], Mon Nov 2 20:03:01 2009 UTC (14 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.131: +2 -3 lines
Diff to previous 1.131 (colored)

we have closefrom(2), so use it; ok deraadt@ tedu@

Revision 1.131 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:51 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.130: +1 -12 lines
Diff to previous 1.130 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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

Revision 1.130 / (download) - annotate - [select for diffs], Mon Jul 28 15:42:07 2008 UTC (15 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.129: +6 -10 lines
Diff to previous 1.129 (colored)

Do not use __progname in inetd as it is not portable. Instead hardcode it to
"inetd" in the few locations that print out the program name.
requested and OK deraadt@

Revision 1.129 / (download) - annotate - [select for diffs], Sun Jul 27 10:06:10 2008 UTC (15 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.128: +8 -11 lines
Diff to previous 1.128 (colored)

Use __progname instead of hand rolled version using argv[0].
Diff from Gleydson Soares gsoares at gmail dot com
OK millert@

Revision 1.128 / (download) - annotate - [select for diffs], Sat Jun 28 10:54:45 2008 UTC (15 years, 11 months ago) by sobrado
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored)

add an underscore to argument name.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Jun 4 18:11:35 2008 UTC (16 years ago) by miod
Branch: MAIN
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored)

adderss -> address

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jan 25 13:52:20 2008 UTC (16 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.125: +7 -2 lines
Diff to previous 1.125 (colored)

validate argv, okay otto@, henning@

Revision 1.125 / (download) - annotate - [select for diffs], Sat Jan 5 09:53:42 2008 UTC (16 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.124: +4 -3 lines
Diff to previous 1.124 (colored)

sync usage() w/ SYNOPSIS;

Revision 1.124 / (download) - annotate - [select for diffs], Tue Sep 11 16:30:59 2007 UTC (16 years, 8 months ago) by gilles
Branch: MAIN
Changes since 1.123: +3 -7 lines
Diff to previous 1.123 (colored)

use strcspn to properly overwrite '\n' in fgets returned buffer

ok pyr@, ray@, millert@, moritz@, chl@

Revision 1.123 / (download) - annotate - [select for diffs], Sat Apr 2 18:10:52 2005 UTC (19 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.122: +10 -9 lines
Diff to previous 1.122 (colored)

Create unix domain sockets with permissions 0666, so clients can
actually access it. If you want unix domain sockets that are access
restricted, create them in a dir with restrictive permissions. PR 4141.

ok deraadt@

Revision 1.122 / (download) - annotate - [select for diffs], Wed Sep 15 08:46:00 2004 UTC (19 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.121: +5 -5 lines
Diff to previous 1.121 (colored)

if (signalflag) { dowork(); signalflag = 0; } is a race. First clear flag,
then call work(). ok deraadt@

Revision 1.121 / (download) - annotate - [select for diffs], Tue Sep 14 22:28:41 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.120: +7 -4 lines
Diff to previous 1.120 (colored)

remove gcc specific extensions, and ARGSUSED where useful

Revision 1.120 / (download) - annotate - [select for diffs], Mon Sep 6 07:03:08 2004 UTC (19 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.119: +9 -5 lines
Diff to previous 1.119 (colored)

Reset signal mask in the rate limiting case; check for interrupted
waits. Fixes zombies getting reaped late and other ignored signals.
Reported by mpech@; fix by millert@ with help from me. Commit requested
by deraadt@. ok mpech@

Revision 1.119 / (download) - annotate - [select for diffs], Wed Jul 28 13:08:19 2004 UTC (19 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.118: +8 -2 lines
Diff to previous 1.118 (colored)

Should set user and group on unix domain sockets as reported by Juan Vera.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Jun 30 07:58:12 2004 UTC (19 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.117: +18 -19 lines
Diff to previous 1.117 (colored)

Unbreak unix domain sockets and properly detect and report truncation
of the socket path name. Based on a diff from Juan Vera, with changes
by me and millert@.  ok millert@ djm@; man page ok jmc@

Revision 1.117 / (download) - annotate - [select for diffs], Sat Apr 24 21:40:35 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.116: +81 -126 lines
Diff to previous 1.116 (colored)

Don't return NULL in getconfigent() when an unresolvable hostname
or unsupported address family is specified.  This simplifies the
hostname/address lookup loops and gets rid of the skip label.
Found by mpech@.  OK deraadt@ and otto@

Revision 1.116 / (download) - annotate - [select for diffs], Wed Mar 31 19:12:22 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.115: +10 -3 lines
Diff to previous 1.115 (colored)

For non-internal services, if no program arguments are specified use
the program's basename as argv[0].  Problem found by mpech@.
OK deraadt@ beck@

Revision 1.115 / (download) - annotate - [select for diffs], Tue Jan 6 19:45:54 2004 UTC (20 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.114: +6 -5 lines
Diff to previous 1.114 (colored)

Fix signal handling when there is an error in inetd.conf.  Found by
mpech@.  OK mpech@ and deraadt@

Revision 1.114 / (download) - annotate - [select for diffs], Tue Dec 23 15:24:28 2003 UTC (20 years, 5 months ago) by mpech
Branch: MAIN
Changes since 1.113: +9 -9 lines
Diff to previous 1.113 (colored)

Remove unnecessary casts (char *).

millert@ ok.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Oct 24 20:30:02 2003 UTC (20 years, 7 months ago) by avsm
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

dont compare int to NULL, millert@ ok

Revision 1.112 / (download) - annotate - [select for diffs], Fri Oct 3 22:43:37 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.111: +6 -5 lines
Diff to previous 1.111 (colored)

exit if no config file; jeffi@rcn.com

Revision 1.111 / (download) - annotate - [select for diffs], Thu Jun 26 19:47:08 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

strict proto cleanups

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jun 2 23:36:53 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.109: +3 -7 lines
Diff to previous 1.109 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Apr 28 02:58:45 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

advocate posix ":" for user:group.  deraadt ok

Revision 1.108 / (download) - annotate - [select for diffs], Mon Nov 11 23:46:29 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.107: +4 -4 lines
Diff to previous 1.107 (colored)

Pass gcc -ansi -pedantic; Chad Loder

Revision 1.107 / (download) - annotate - [select for diffs], Fri Sep 6 19:46:52 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.106: +7 -5 lines
Diff to previous 1.106 (colored)

use more socklen_t; pvalchev

Revision 1.106 / (download) - annotate - [select for diffs], Sat Jul 20 18:01:18 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.105: +5 -3 lines
Diff to previous 1.105 (colored)

abort on setusercontext failure; millert ok

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jul 15 23:05:17 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.104: +5 -4 lines
Diff to previous 1.104 (colored)

minor tweaks

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jul 15 22:26:31 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.103: +39 -79 lines
Diff to previous 1.103 (colored)

ansi

Revision 1.103 / (download) - annotate - [select for diffs], Thu Jul 4 12:36:56 2002 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored)

correct udp-from-broadcast check.  from <andre@ae-35.com>

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jun 28 22:41:10 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.101: +6 -5 lines
Diff to previous 1.101 (colored)

minor KNF

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jun 21 07:30:09 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored)

kill gratuitous hex; millert ok

Revision 1.100 / (download) - annotate - [select for diffs], Fri Jun 21 06:20:28 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.99: +22 -35 lines
Diff to previous 1.99 (colored)

o change some 0-2 to *_FILENO
o don't #ifdef RLIMIT_NOFILE
o dup2() safety
o some NULL vs. 0 changes

deraadt@ OK

Revision 1.99 / (download) - annotate - [select for diffs], Fri Jun 7 07:37:41 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.98: +29 -4 lines
Diff to previous 1.98 (colored)

do not respond to udp service if ip_src matches broadcast addr.  theo ok

Revision 1.98 / (download) - annotate - [select for diffs], Sat Jun 1 03:42:06 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.97: +6 -6 lines
Diff to previous 1.97 (colored)

machtime() is 32bit quantity.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Jun 1 01:57:44 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.96: +15 -30 lines
Diff to previous 1.96 (colored)

i find more: a stderr print that makes no sense, and a part that was
used by the fake setproctitle.  itojun -- your turn.

Revision 1.96 / (download) - annotate - [select for diffs], Fri May 31 23:48:41 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored)

cleanup socklen_t

Revision 1.95 / (download) - annotate - [select for diffs], Fri May 31 22:20:18 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.94: +257 -233 lines
Diff to previous 1.94 (colored)

split out two major function blocks which made the indentation horrible

Revision 1.94 / (download) - annotate - [select for diffs], Fri May 31 20:20:53 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.93: +28 -37 lines
Diff to previous 1.93 (colored)

use setproctitle(3).  check for IPv6 ftp bounce attack.  deraadt ok

Revision 1.93 / (download) - annotate - [select for diffs], Thu May 30 19:09:05 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.92: +28 -28 lines
Diff to previous 1.92 (colored)

minor KNF

Revision 1.92 / (download) - annotate - [select for diffs], Wed May 29 19:23:34 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.91: +5 -5 lines
Diff to previous 1.91 (colored)

more strlcat

Revision 1.91 / (download) - annotate - [select for diffs], Sun May 26 09:25:21 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.90: +9 -8 lines
Diff to previous 1.90 (colored)

pid_t cleanup

Revision 1.90 / (download) - annotate - [select for diffs], Wed May 22 09:09:32 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

more strcpy/sprintf death; mpech ok

Revision 1.89 / (download) - annotate - [select for diffs], Thu Mar 14 16:44:25 2002 UTC (22 years, 2 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.88: +19 -19 lines
Diff to previous 1.88 (colored)

kill more registers.

millert@ ok

Revision 1.88 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:03 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.87: +37 -37 lines
Diff to previous 1.87 (colored)

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.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Feb 10 01:19:02 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

Fix SIGTERM handling; deraadt@ ok

Revision 1.86 / (download) - annotate - [select for diffs], Mon Nov 5 09:43:50 2001 UTC (22 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.85: +26 -17 lines
Diff to previous 1.85 (colored)

remove last signal race

Revision 1.85 / (download) - annotate - [select for diffs], Tue Sep 4 23:35:59 2001 UTC (22 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.84: +34 -27 lines
Diff to previous 1.84 (colored)

Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Sep 3 21:22:38 2001 UTC (22 years, 9 months ago) by pjanzen
Branch: MAIN
Changes since 1.83: +3 -4 lines
Diff to previous 1.83 (colored)

doreap() needn't preserve errno, since it's not a signal handler.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Tue Jul 17 04:13:48 2001 UTC (22 years, 10 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.82: +4 -8 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Pull in patch from current:
Fix (deraadt):
cleanup; itojun & jasoni (adds checking of IPv6 udp source port)

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 4 06:46:58 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +4 -8 lines
Diff to previous 1.82 (colored)

cleanup; itojun & jasoni

Revision 1.82 / (download) - annotate - [select for diffs], Thu Mar 15 18:28:41 2001 UTC (23 years, 2 months ago) by danh
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.81: +6 -3 lines
Diff to previous 1.81 (colored)

break out of loop if a flag is set; ok deraadt@

Revision 1.81 / (download) - annotate - [select for diffs], Thu Mar 15 18:07:57 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +14 -14 lines
Diff to previous 1.80 (colored)

spin even cheaper

Revision 1.80 / (download) - annotate - [select for diffs], Thu Mar 15 17:53:09 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.79: +15 -15 lines
Diff to previous 1.79 (colored)

check all flags before looping

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 30 08:30:57 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.78: +10 -3 lines
Diff to previous 1.78 (colored)

check for invalid [.max] fields

Revision 1.78 / (download) - annotate - [select for diffs], Mon Jan 29 21:08:11 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.77: +4 -3 lines
Diff to previous 1.77 (colored)

mark signal races

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jan 29 21:07:36 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +7 -7 lines
Diff to previous 1.76 (colored)

do not _exit() in fork()'d child

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 29 21:06:43 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.75: +7 -7 lines
Diff to previous 1.75 (colored)

do not exit(-1)

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jan 29 11:23:28 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

use _exit() in signal handler

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jan 17 19:30:03 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored)

use sig_atomic_t

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jan 16 23:57:37 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.72: +18 -14 lines
Diff to previous 1.72 (colored)

check flags every loop, not just on EINTR

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jan 12 16:34:03 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.71: +96 -24 lines
Diff to previous 1.71 (colored)

un-race three signal handlers, and fix the fd_set overflow gunk

Revision 1.71 / (download) - annotate - [select for diffs], Tue Nov 21 07:23:24 2000 UTC (23 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.70: +2 -264 lines
Diff to previous 1.70 (colored)

bye bye MULOG.  code that is easy to read, is code that is easy to audit

Revision 1.70 / (download) - annotate - [select for diffs], Thu Nov 9 02:55:42 2000 UTC (23 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

typo

Revision 1.69 / (download) - annotate - [select for diffs], Tue Aug 22 14:47:54 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

If a user is specified in inetd.conf, set the LOGIN_SETGROUP flag too
since setting user implies setting default groups for that user.
Porblem noted by sigh@kuzirabekon.econ.nagasaki-u.ac.jp.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:42 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.67: +17 -21 lines
Diff to previous 1.67 (colored)

Add calls to setusercontext() and login_get*().  We basically call
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Aug 3 11:33:37 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.66: +9 -3 lines
Diff to previous 1.66 (colored)

udp source validation: drop v4 mapped altogether.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Aug 1 19:05:23 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.65: +3 -5 lines
Diff to previous 1.65 (colored)

unused variable

Revision 1.65 / (download) - annotate - [select for diffs], Tue Aug 1 19:02:05 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.64: +47 -11 lines
Diff to previous 1.64 (colored)

be more paranoid about UDP-based echo services validation.  namely,
reject the following sources:
	0.0.0.0/8 127.0.0.0/8 240.0.0.0/4 255.0.0.0/8
	ff00::/8 ::/128
	::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule.
	reserved port, or NFS port.
hint from deraadt.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Aug 1 18:52:50 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.63: +36 -27 lines
Diff to previous 1.63 (colored)

for datagram services, support IPv6.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Jul 8 01:57:27 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.62: +73 -49 lines
Diff to previous 1.62 (colored)

handle IPv6 address in first element.
permit square bracket notation in first element of inetd.conf, like RFC2732.
otherwise colon is slightly ambiguous.  sync with kame.

[::1]:ftp  stream  tcp6  nowait  root  /usr/libexec/ftpd  ftpd -US -h

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 19 01:28:45 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.61: +6 -2 lines
Diff to previous 1.61 (colored)

honor scopeid when compare ipv6 addrs

Revision 1.61 / (download) - annotate - [select for diffs], Sat Mar 4 01:10:06 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.60: +56 -33 lines
Diff to previous 1.60 (colored)

handle corrupt inetd.conf files better; sdb@ssr.com

Revision 1.60 / (download) - annotate - [select for diffs], Tue Feb 1 03:23:58 2000 UTC (24 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored)

no need to extern int errno if errno.h is included

Revision 1.59 / (download) - annotate - [select for diffs], Fri Dec 10 16:19:29 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.58: +12 -16 lines
Diff to previous 1.58 (colored)

indent

Revision 1.58 / (download) - annotate - [select for diffs], Fri Dec 10 10:28:40 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.57: +9 -8 lines
Diff to previous 1.57 (colored)

repair various bugs in -d mode

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 8 13:21:17 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.56: +80 -4 lines
Diff to previous 1.56 (colored)

IPv6/v4 inetd(8) from KAME.  now you can test ftp over IPv6.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 24 12:31:30 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

fix -R option; hugh

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 4 12:03:08 1999 UTC (25 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

PIDs does not always fit in short

Revision 1.54 / (download) - annotate - [select for diffs], Fri Dec 4 07:52:02 1998 UTC (25 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +8 -6 lines
Diff to previous 1.53 (colored)

support user.group or user:group, per chown(8)

Revision 1.53 / (download) - annotate - [select for diffs], Sat Nov 21 00:15:58 1998 UTC (25 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

missing \n

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 19 06:34:03 1998 UTC (25 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored)

catch extra junk at the end of the numbers

Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 18 23:25:35 1998 UTC (25 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +11 -7 lines
Diff to previous 1.50 (colored)

correct strtol() mess around rpc version numbers

Revision 1.50 / (download) - annotate - [select for diffs], Wed Oct 28 18:01:17 1998 UTC (25 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

fix ? usage handling; route@resentment.infonexus.com

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jul 15 17:51:14 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.48: +6 -3 lines
Diff to previous 1.48 (colored)

close fd leak; jeff@FORYS.CRANBURY.NJ.US

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 13 02:11:48 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

ftpd: sleep for an indeterminate amount for non-existant logins
      to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jun 3 08:06:01 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.46: +7 -4 lines
Diff to previous 1.46 (colored)

use sigsetops, and do cross-block signal handlers

Revision 1.46 / (download) - annotate - [select for diffs], Thu Mar 12 00:19:16 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.45: +18 -17 lines
Diff to previous 1.45 (colored)

unblock SIGPIPE before execv(); chuck.
convert to sigaction(); deraadt.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Feb 24 20:21:32 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.44: +6 -3 lines
Diff to previous 1.44 (colored)

udp time may be contacted at dynamic reserved

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 23 23:46:16 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +4 -3 lines
Diff to previous 1.43 (colored)

make it more obvious why pmap_set syslogs happen

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 4 21:35:29 1997 UTC (26 years, 6 months ago) by art
Branch: MAIN
Changes since 1.42: +5 -4 lines
Diff to previous 1.42 (colored)

Fixed a sysadmin-dos.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Nov 14 03:46:00 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +22 -6 lines
Diff to previous 1.41 (colored)

clone freebsd "-R rate"; default to 256 invocations/minute

Revision 1.41 / (download) - annotate - [select for diffs], Fri Nov 14 03:40:02 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

crank TOOMANY to 160 for now

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 19 12:21:27 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored)

ignore SIGPIPE; not nearly as much of a problem as linux though

Revision 1.39 / (download) - annotate - [select for diffs], Sun Aug 31 18:04:37 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +38 -20 lines
Diff to previous 1.38 (colored)

only check for ftp bounce in tcp, duh. for nonreserved ports, do not
close for looping mode. kill an fd leak.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Aug 29 17:07:04 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

very weird sleep; dholland@eecs.harvard.edu

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 4 19:26:10 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored)

save errno in sigchld handlers

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jul 22 21:12:28 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +32 -33 lines
Diff to previous 1.35 (colored)

cleanup

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jul 8 20:37:30 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

print child exit status in debug mode.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jul 8 20:31:14 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.33: +20 -23 lines
Diff to previous 1.33 (colored)

NULL

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 26 17:31:22 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +17 -17 lines
Diff to previous 1.32 (colored)

mem* cleanup

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 26 06:26:15 1997 UTC (26 years, 11 months ago) by denny
Branch: MAIN
Changes since 1.31: +233 -71 lines
Diff to previous 1.31 (colored)

Better support for specific instance binding in inetd:
- Allow comma delimited list of hostnames, create a socket for each
- Allow a hostname which resolves to multiple addrs, create a socket for each
- Make sure kill -HUP handles specific instance services correctly.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jun 23 09:37:37 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

return 32-bits worth of time for time service

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 23 09:35:04 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

sigblock plays with ints

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 17 05:41:19 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +2 -8 lines
Diff to previous 1.28 (colored)

do not test for a bug which does not exist

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 17 05:26:22 1997 UTC (26 years, 11 months ago) by denny
Branch: MAIN
Changes since 1.27: +114 -5 lines
Diff to previous 1.27 (colored)

Add per-interface binding, based on der Mouse's code in netbsd.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jun 4 11:07:05 1997 UTC (27 years ago) by deraadt
Branch: MAIN
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

toast extra \n; ficus

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 4 11:03:15 1997 UTC (27 years ago) by deraadt
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

do not exceed bounds of fd_set

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 24 12:48:06 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.24: +3 -6 lines
Diff to previous 1.24 (colored)

irc thing is dumb, and do not bother wasting effort screaming about ftp bounce attempts, just slaughter them

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:59 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 14 19:19:09 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +12 -3 lines
Diff to previous 1.22 (colored)

be more careful with setgroups()

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 11 09:05:05 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +21 -19 lines
Diff to previous 1.21 (colored)

proto & column cleanup

Revision 1.21 / (download) - annotate - [select for diffs], Sat Aug 31 17:31:05 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.20: +3 -17 lines
Diff to previous 1.20 (colored)

rpc is not an option anymore

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 28 09:55:00 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +29 -13 lines
Diff to previous 1.19 (colored)

closer towards useable by generic joe

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 16 08:32:54 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

do not do bindresvport if user runs own inetd

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 11 23:24:25 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +10 -10 lines
Diff to previous 1.17 (colored)

fix doc order of setgid/initgroups/setuid

Revision 1.17 / (download) - annotate - [select for diffs], Fri Aug 2 07:18:35 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +14 -7 lines
Diff to previous 1.16 (colored)

merge freebsd setlogin/setsid changes

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 2 06:47:41 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

indent

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 2 06:13:26 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +14 -3 lines
Diff to previous 1.14 (colored)

after rpc bind, getpeername() to update sin_port

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 31 11:01:54 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +18 -14 lines
Diff to previous 1.13 (colored)

proto throughout

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 29 23:45:34 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +5 -2 lines
Diff to previous 1.12 (colored)

udp spam on 6667

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 29 09:14:55 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +19 -0 lines
Diff to previous 1.11 (colored)

careful of bad addr/port in dgram services

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 29 09:13:31 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +82 -43 lines
Diff to previous 1.10 (colored)

-Wall clean; careful buffer usage

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 29 07:53:07 1996 UTC (27 years, 10 months ago) by downsj
Branch: MAIN
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored)

Zero out the port for RPC services; let bind() find one.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 29 03:43:54 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

from port 20, do not leak an fd

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 28 05:54:41 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +8 -7 lines
Diff to previous 1.7 (colored)

arthur (in)dent

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 28 05:13:19 1996 UTC (27 years, 10 months ago) by joshd
Branch: MAIN
Changes since 1.6: +14 -3 lines
Diff to previous 1.6 (colored)

Do not allow hosts to connect to servers from
source ports < IPPORT_RESERVED/2.  This is for ftp bounce attacks,

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 29 01:02:24 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)

bindresvport() called incorrectly; we need a proto somewhere guys

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 28 17:50:09 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

closelog() before we trash the syslog descriptor; suggestion from alan@parsys.co.uk

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 12 07:23:26 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +17 -6 lines
Diff to previous 1.3 (colored)

use resv port only for root processes

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 13 16:00:08 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +7 -1 lines
Diff to previous 1.2 (colored)

bindresvport() for rpc ports

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 25 15:55:24 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.1: +7 -10 lines
Diff to previous 1.1 (colored)

From NetBSD: merge of 960317

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:36 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:47:36 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.