OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:14 2023 UTC (14 months, 3 weeks ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:49 2019 UTC (4 years, 11 months ago) by deraadt
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, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.49: +9 -9 lines
Diff to previous 1.49 (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.49 / (download) - annotate - [select for diffs], Sat Aug 4 03:23:08 2018 UTC (5 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

I can find no reason why portmap needs rpath after initialization.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 14 13:32:44 2015 UTC (8 years, 7 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)

include err.h for the err() calls added in rev 1.46

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:09 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 8 14:02:09 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.45: +8 -1 lines
Diff to previous 1.45 (colored)

portmap's main process can be tame "stdio rpath inet proc"; proc is
for the callit interface needing to fork, and parent needing to wait.
that child can drop to "stdio rpath inet".

It is possible some libc/rpc codepath has not yet been figured out, but
commiting it is the best way to get it tested. Tested what I could myself,
but noone answered my call for testing...

Revision 1.45 / (download) - annotate - [select for diffs], Sun Sep 13 15:44:47 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.44: +3 -6 lines
Diff to previous 1.44 (colored)

More FNDELAY/FIONBIO --> SOCK_NONBLOCK conversions

ok millert@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 13 14:57:33 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.43: +11 -5 lines
Diff to previous 1.43 (colored)

Rename the routines used for packing/unpacking rmtcall RPCs so they don't
conflict with those in libc.  They're already static, but best to be clear
that they're different in functionality, supporting operations that libc's
don't need or have.

with deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 1 17:31:59 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.42: +1 -9 lines
Diff to previous 1.42 (colored)

stop defining a local copy of perror(); libc/rpc no longer uses it.
ok beck millert miod

Revision 1.42 / (download) - annotate - [select for diffs], Sun Mar 16 18:38:30 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.41: +1 -3 lines
Diff to previous 1.41 (colored)

lint is dead (long live the lint!), so stop using it as a cpp conditional
(namespace pollution!) or talking about its opinion on code.

ok krw@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 1 14:43:34 2010 UTC (13 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.40: +31 -30 lines
Diff to previous 1.40 (colored)

Oracle has re-licensed sunrpc under a three-clause BSD license.
Update our sources appropriately.  OK deraadt@ jsg@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Aug 22 21:28:32 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.39: +33 -39 lines
Diff to previous 1.39 (colored)

small bits of cleanup.  ok otto

Revision 1.39 / (download) - annotate - [select for diffs], Thu Nov 12 05:42:09 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored)

a sprinkle of knf

Revision 1.38 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:53 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +1 -20 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Wed May 20 20:37:43 2009 UTC (15 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.36: +6 -3 lines
Diff to previous 1.36 (colored)

Do not fall back to using nobody if _user is missing, but
error out.

Add a new user _rwalld for rpc.rwalld, and use that instead
of nobody, also unconditionally drop to _rwalld not only
if rpc.rwalld was started with euid 0 (as root).

ok deraadt@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 18 00:40:14 2006 UTC (18 years, 2 months ago) by dhill
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.35: +6 -7 lines
Diff to previous 1.35 (colored)

add missing function declaration
remove unused parameter from check_callit()

ok deraadt@ ray@

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 3 18:54:07 2006 UTC (18 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.34: +13 -10 lines
Diff to previous 1.34 (colored)

include signal.h not sys/signal.h and remove a useless cast; OK deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 22 21:19:39 2005 UTC (19 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

misisng endpwent(), spotted by Daniel Cid <daniel.cid@gmail.com>

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 3 01:01:15 2005 UTC (19 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.32: +8 -7 lines
Diff to previous 1.32 (colored)

more setres[ug]id; ok deraadt@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 14 22:28:50 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

ARGSUSED before signal handler with unused signo

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 16 01:11:09 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

errno is not specified to be int, but something from errno.h.  ok millert@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Aug 25 04:56:42 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

protos

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 26 19:47:09 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

strict proto cleanups

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

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

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 20 19:51:36 2003 UTC (21 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

use LOG_NDELAY in chroot() using daemons

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 26 03:03:27 2002 UTC (21 years, 9 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.25: +6 -3 lines
Diff to previous 1.25 (colored)

Check svc_register() return value and bomb out on failure; ok deraadt

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 15 23:47:57 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +19 -2 lines
Diff to previous 1.24 (colored)

5 new uid/gid sets; millert ok

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 9 22:20:43 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +16 -2 lines
Diff to previous 1.23 (colored)

detect memory failure; cloder

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 8 08:52:23 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +17 -39 lines
Diff to previous 1.22 (colored)

ANSI

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

minor KNF

Revision 1.21 / (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.20: +11 -11 lines
Diff to previous 1.20 (colored)

kill more registers.

millert@ ok

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:07 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Fri Jul 27 20:34:36 2001 UTC (22 years, 10 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Wall cleanup

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jul 31 17:28:26 2000 UTC (23 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.17: +17 -6 lines
Diff to previous 1.17 (colored)

before, we blocked non-root from changing mappings pointed at reserved ports.
Now, block non-root from setting them up in the first place.
Also, check that pm_port is not > 65536

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 31 17:27:11 2000 UTC (23 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

KNF

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jan 4 03:00:27 1999 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored)

use pid_t

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 27 02:02:57 1998 UTC (26 years, 1 month ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

make error messages for binds different

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 15 15:18:49 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (colored)

for callit, let nop through. rpcinfo -b, ya know; adam@math.tau.ac.il

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 17 16:07:27 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored)

OpenBSD tags

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 15 23:44:12 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 6 04:13:12 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

fixing a portmap bug i introduced just before release makes me happy

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 31 11:09:15 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +9 -6 lines
Diff to previous 1.9 (colored)

inet_ntoa called wrong

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

check callit() stuff like portmap5 does (ugh)

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

fix a few typos in error messages; from freebsd

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 25 22:03:05 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

search proper list, duh

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 18 11:40:59 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +60 -60 lines
Diff to previous 1.5 (colored)

more readable

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 7 20:15:10 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

call inet_ntoa correctly, from wietse

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 1 00:35:05 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

whoops

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 29 19:03:50 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +135 -64 lines
Diff to previous 1.2 (colored)

multiple receivers, port checking. testing help from bitblt

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 5 16:15:28 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

from netbsd:
second argument to xdr_long must be a "long *", which means that the
'out' arg to svc_sendreply must point to a long if outproc is
xdr_long.  It was pointing to an 'int', and that was crashing on the
alpha, due to bad alignment.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:57 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:57 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.