OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57, Fri Apr 18 15:59:36 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +1 -1 lines
FILE REMOVED

Malak: I think we made the merchant angry.
Conan: Are you surprised?
Malak: But we didn't steal everything he had!
Conan: We didn't have time.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 16 19:14:57 2014 UTC (10 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.55: +25 -272 lines
Diff to previous 1.55 (colored)

Remove ifdef'd out KerberosIV and stream encryption support.  While
here, sort arguments.

ok tedu miod (who had the same diff with an additional bit of clean-up)

Revision 1.55 / (download) - annotate - [select for diffs], Wed Apr 16 19:03:14 2014 UTC (10 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

add missing parens so that errorhost gets properly initialized.

ok tedu miod (who had the same diff)

Revision 1.54 / (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_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.53 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:31 2009 UTC (14 years, 7 months ago) by deraadt
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, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.52: +1 -12 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Tue Apr 8 19:16:05 2008 UTC (16 years, 1 month ago) by deraadt
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.51: +2 -3 lines
Diff to previous 1.51 (colored)

should not call setpwent(); millert agrees

Revision 1.51 / (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_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, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.50: +2 -6 lines
Diff to previous 1.50 (colored)

remove NI_WITHSCOPEID (which is not standard)

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 12 21:21:45 2003 UTC (20 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.49: +50 -59 lines
Diff to previous 1.49 (colored)

Convert to use poll(2) instead of static select; OK deraadt@

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jun 2 19:38:24 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.48: +3 -7 lines
Diff to previous 1.48 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Fri Sep 6 19:43:54 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.47: +6 -4 lines
Diff to previous 1.47 (colored)

use socklen_t more; henning ok

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 3 23:27:19 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.46: +28 -35 lines
Diff to previous 1.46 (colored)

ansi on a file which idiots believe is not here anymore

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

pid_t cleanup

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 22 06:35:44 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

a bunch more strcpy -> strlcpy and sprintf -> snprintf

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Tue Mar 19 04:28:22 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.40: +15 -3 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull in patch from current:
Fix (millert):
Avoid potential corruption of passwd pointer by auth_approval().

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 16 18:38:19 2002 UTC (22 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

Add missing login_close() call.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 16 18:00:44 2002 UTC (22 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.42: +14 -3 lines
Diff to previous 1.42 (colored)

auth_approval() calls getpwnam() which can modify the stashed passwd
struct.  Use auth_setpwd() to stash a copy of the struct so
auth_approval() doesn't need to use getpwnam().  Closes PR 2470.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:38 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.41: +4 -18 lines
Diff to previous 1.41 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:31 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.40: +12 -12 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Wed Sep 5 22:32:36 2001 UTC (22 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

make sure that va_start() has matching va_end()

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:44 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jun 11 15:18:51 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.37: +7 -9 lines
Diff to previous 1.37 (colored)

strncpy vs strlcpy, some strlen missuse.
some other related minor cleanups, and spaces.
millert@ ok

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 29 21:37:16 2001 UTC (23 years ago) by millert
Branch: MAIN
Changes since 1.36: +12 -11 lines
Diff to previous 1.36 (colored)

Call auth_checknologin() and auth_approval() as appropriate for BSD
authentication.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Feb 4 17:51:30 2001 UTC (23 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Use _PW_NAME_LEN+1, not 16 for size of remote/local usernames variables
since rcmd(3) sends strlen(pw_name)+1 bytes.

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

$OpenBSD$

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 10 17:45:43 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored)

correct call to freeaddrinfo.   do not free region before referenced.
reported by ryo@iij.ad.jp for kame/netbsd, and aaron.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 15 07:13:47 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.32: +7 -5 lines
Diff to previous 1.32 (colored)

check return value for setenv(3) for failure, and deal appropriately

Revision 1.32 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:38 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.31: +26 -25 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Thu Mar 9 14:59:12 2000 UTC (24 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.30: +6 -8 lines
Diff to previous 1.30 (colored)

-Wall type correctness

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 27 05:21:12 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.29: +86 -43 lines
Diff to previous 1.29 (colored)

make rshd and rlogind IPv6-ready.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 15 01:03:28 1999 UTC (24 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

logging getpeername() failures is a waste of time

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 12 08:46:52 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.27: +3 -4 lines
Diff to previous 1.27 (colored)

indent

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jul 10 18:22:54 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.26: +8 -7 lines
Diff to previous 1.26 (colored)

Make sure port is in allowed range before trying to get a reserved port.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 10 08:06:12 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 9 23:38:15 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

this is rshd, not rlogind

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 22 19:44:46 1998 UTC (25 years, 11 months ago) by art
Branch: MAIN
Changes since 1.23: +8 -2 lines
Diff to previous 1.23 (colored)

The x option is not used if CRYPT is turned off.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 3 02:35:20 1998 UTC (26 years ago) by angelos
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Make warnings disappear.

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 15 04:28:26 1998 UTC (26 years ago) by art
Branch: MAIN
Changes since 1.21: +15 -6 lines
Diff to previous 1.21 (colored)

cleanup and build with -Wall

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 3 23:39:32 1998 UTC (26 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

whack _exit(); gnat@prometheus.frii.com

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 25 19:41:20 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

#if __STDC__ --> #ifdef __STDC__

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

tabify

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 29 11:10:30 1997 UTC (26 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

new location of des.h

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 15 05:10:39 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

rshd should give the same error message when the user doesn't exist
as for when there is no .rhosts/hosts.equiv.  With a different
error message an information gathering attack can be done.
Noted by David Holland <dholland@eecs.harvard.edu>.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 13 22:32:46 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

if i find one more little problem, and have to make one more little
tweak to this ip option handling code I am going to absolutely scream
in rage, following which I will rip the bloody innards out of netinet
and build my own new incompatible option checking/processing interface
that does not make it so hidiously difficult to check if a session has
source routes active!

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 13 22:29:07 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

option handling is a bitch

Revision 1.14 / (download) - annotate - [select for diffs], Thu Feb 13 22:21:08 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (colored)

ok, i finally learned about struct ipoption

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 5 21:09:29 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -8 lines
Diff to previous 1.12 (colored)

do not warn about valid options; invalid options correctly quit

Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 5 14:26:49 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +1 -6 lines
Diff to previous 1.11 (colored)

need not clear options since bad ones cause exit; provos@ws1.physnet.uni-hamburg.de

Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 5 04:18:30 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +15 -6 lines
Diff to previous 1.10 (colored)

IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed out by
provos@wserver.physnet.uni-hamburg.de. also another 1-char buffer overflow.

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

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

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 22 03:41:20 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 1 11:30:33 1996 UTC (27 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

argument type nit

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 26 04:37:29 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

set $LOGNAME fore POSIX

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 23 19:27:42 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

require stderr to be > IPPORT_RESERVED/2 (hope this does not break anything...)

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 22 01:59:10 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

seteuid for chdir

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 17 07:20:01 1996 UTC (28 years, 1 month ago) by tholo
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Make encrypted kerberos remote shell work again.  Note that this is not
a supported configuration, and no port number is defined for it.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 16 22:20:23 1995 UTC (28 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.2: +228 -1 lines
Diff to previous 1.2 (colored)

Make it possible to build without SKEY support
Add support for building with kerberosIV

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 20 09:38:09 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +17 -18 lines
Diff to previous 1.1 (colored)

indentation botch

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