OpenBSD CVS

CVS log for src/libexec/identd/Attic/identd.c


[BACK] Up to [local] / src / libexec / identd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.54, Wed Dec 4 20:46:39 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.53: +1 -1 lines
FILE REMOVED

we now use the rewritten usr.sbin/identd

Revision 1.53 / (download) - annotate - [select for diffs], Mon Mar 11 21:24:24 2013 UTC (11 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.52: +6 -42 lines
Diff to previous 1.52 (colored)

Report -u and -g support; running as another privdrop user or group is stupid.
ok millert  guenther

Revision 1.52 / (download) - annotate - [select for diffs], Mon Mar 11 17:40:10 2013 UTC (11 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.51: +7 -2 lines
Diff to previous 1.51 (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.51 / (download) - annotate - [select for diffs], Sat Mar 9 17:40:57 2013 UTC (11 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Code has not fallen back to "nobody" in a very long time;
jca at wxcvbn.org

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:47 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jun 6 07:05:40 2010 UTC (14 years ago) by jmc
Branch: MAIN
CVS Tags: 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, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

add -H to synopsis/usage(); from Rod Whitworth

Revision 1.48 / (download) - annotate - [select for diffs], Wed May 20 20:37:43 2009 UTC (15 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.47: +1 -4 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sat May 24 02:33:05 2008 UTC (16 years ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.46: +104 -62 lines
Diff to previous 1.46 (colored)

IPv6 support for standalone mode with assistance from millert@ and deraadt@
Tested by brad@ and sobrado@

ok deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Wed Sep 26 02:46:29 2007 UTC (16 years, 8 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.45: +7 -4 lines
Diff to previous 1.45 (colored)

From Tamas TEVESZ:
- atoi -> strtonum with proper bounds check
- Use vfprintf and vsyslog in the appropriate places.

OK millert.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Sep 25 14:21:30 2007 UTC (16 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

- sort options and sync usage()
- kill some .Tn whilst here

Revision 1.44 / (download) - annotate - [select for diffs], Sun Aug 26 07:38:38 2007 UTC (16 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.43: +6 -6 lines
Diff to previous 1.43 (colored)

Fix some error messages and comments, from Brad.

OK otto.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 28 21:43:36 2007 UTC (16 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.42: +15 -11 lines
Diff to previous 1.42 (colored)

Add a SIGCHLD handler for background mode instead of doing waitpid()
at a single point in the event loop (which would always leave
a single zombie around after the first connection).
Also use daemon() instead of doing it by hand.  OK deraadt@ beck@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 6 22:05:22 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.41: +7 -7 lines
Diff to previous 1.41 (colored)

avoid variable aliasing

Revision 1.41 / (download) - annotate - [select for diffs], Wed Nov 17 01:47:20 2004 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.40: +1 -5 lines
Diff to previous 1.40 (colored)

remove NI_WITHSCOPEID (which is not standard)

Revision 1.40 / (download) - annotate - [select for diffs], Thu Sep 16 08:25:05 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.39: +41 -19 lines
Diff to previous 1.39 (colored)

i hate macros with 50 , :? and ())()()((()())); otto ok

Revision 1.39 / (download) - annotate - [select for diffs], Tue Sep 14 22:14:29 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

ARGSUSED before signal handler with unused signo

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 8 19:32:45 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.37: +13 -13 lines
Diff to previous 1.37 (colored)

spacing

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 7 14:09:35 2004 UTC (20 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Remove those option letters from the getopt string which do not have a case
handler below. millert@ ok

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jul 29 18:39:23 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

spaces

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 28 01:05:21 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored)

missing protos

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jun 7 18:31:17 2003 UTC (21 years ago) by henning
Branch: MAIN
Changes since 1.33: +13 -1 lines
Diff to previous 1.33 (colored)

drop privileges to _identd by default and fall back to nobody in case of error
inspired by PR 3294 and a conversation with theo

ok millert@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 13 01:31:39 2002 UTC (21 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.32: +6 -2 lines
Diff to previous 1.32 (colored)

Add -H option to hide nonexistent users (useful on NAT gateways). ok millert@

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jul 17 02:53:36 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

whoops, wrong type

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 16 10:36:10 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -6 lines
Diff to previous 1.30 (colored)

remove more junk

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 16 10:24:04 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +12 -12 lines
Diff to previous 1.29 (colored)

let BSS work to our advantage

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

delint

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jul 16 10:16:10 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +7 -12 lines
Diff to previous 1.27 (colored)

minor cleanup, and toast -V

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 22 20:34:31 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +17 -28 lines
Diff to previous 1.26 (colored)

ansi

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 12 19:45:09 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Fix typo that prevented user's gid in passwd entry from being applied;
Brian Poole

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 12 18:45:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.24: +10 -7 lines
Diff to previous 1.24 (colored)

1) user and group name may start with a number (though it is a bad idea).
   For the -u/-g flags do passwd/group file lookups first and then try
   as a numeric id.
2) Set the gid based on the uid's passwd file entry if there is one, just
   like we do with names.
Partially based on a patch from Brian Poole

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 7 17:08:28 2002 UTC (22 years, 5 months ago) by mpech
Branch: MAIN
Changes since 1.23: +8 -16 lines
Diff to previous 1.23 (colored)

While I'm here (next issue):
o) __progname;
o) remove #define LOG_DAEMON;
o) use openlog() before syslog();
o) write $version to stderr;

millert@ ok

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 7 08:13:31 2002 UTC (22 years, 5 months ago) by mpech
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

o) int -> {uid,gid}_t; %d -> %u;
o) int -> pid_t;

deraadt@ ok

Revision 1.22 / (download) - annotate - [select for diffs], Sat Nov 17 19:54:56 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

volatile sig_atomic_t

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 19 10:58:07 2001 UTC (22 years, 8 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

occured->occurred

idea from deraadt@ via NetBSD
millert@ ok

p.s. Next commit will fix a typo in the sys/

Revision 1.20 / (download) - annotate - [select for diffs], Sun Aug 12 17:53:16 2001 UTC (22 years, 10 months ago) by fgsch
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Use INFTIM where possible.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Aug 8 07:02:42 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +24 -3 lines
Diff to previous 1.18 (colored)

split up the gethost*() functions a bit more, to make it more obvious what
is going on.  This could be improved further by always passing around
fat sockaddr's I think.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 15 23:48:15 2001 UTC (23 years, 1 month ago) by hugh
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.17: +6 -4 lines
Diff to previous 1.17 (colored)

Replace a bunch of conditional expressions with global pointers.
Requested and checked by millert.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 13 20:16:53 2001 UTC (23 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.16: +8 -4 lines
Diff to previous 1.16 (colored)

Add support for user specified tokens to identd.  Based on a patch
from rjmooney@wall.st w/ minor tweakage by Theo and myself.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 28 21:48:31 2001 UTC (23 years, 2 months ago) by fgsch
Branch: MAIN
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Don't make poll exit right away; if timeout is 0 use -1 for poll.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 28 19:34:28 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
Changes since 1.14: +2 -0 lines
Diff to previous 1.14 (colored)

$OpenBSD$

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 17 19:48:08 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +16 -13 lines
Diff to previous 1.13 (colored)

avoid fd_set overflow by using poll(); avoid syslog() in signal handler by using flag checked in main loop

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 18 04:43:28 2000 UTC (23 years, 11 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.12: +62 -13 lines
Diff to previous 1.12 (colored)

add ipv6 support

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 20 22:40:39 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.11: +16 -19 lines
Diff to previous 1.11 (colored)

bad arguments? usage() should syslog()

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 16 20:22:14 1998 UTC (25 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.10: +40 -22 lines
Diff to previous 1.10 (colored)

change to using getopt() [some inetd.conf files will need repair];
add usage()
and add token support via -h (token information is sysloged)

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 10 03:49:40 1998 UTC (26 years ago) by beck
Branch: MAIN
Changes since 1.9: +3 -23 lines
Diff to previous 1.9 (colored)

Now uses TCPCTL_IDENT sysctl to get uid associated with a connection
instead of kmem. Kmem parsing functions and options removed.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 9 22:59:10 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.8: +6 -4 lines
Diff to previous 1.8 (colored)

Using stdio on sockets is gross so don't do it.  Also some -Wall.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 6 19:22:44 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +17 -42 lines
Diff to previous 1.7 (colored)

indent

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 6 10:24:45 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +369 -548 lines
Diff to previous 1.6 (colored)

reindent and remove extra crud. a program that is security sensitive must be readable

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 1 19:08:42 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +1 -16 lines
Diff to previous 1.5 (colored)

remove config trash

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 29 07:49:31 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

wrap wait3 with save_errno

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 23 20:36:27 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

tabify

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 22 03:41:14 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.2: +9 -3 lines
Diff to previous 1.2 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 25 09:50:02 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

openbsd

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