summaryrefslogtreecommitdiff
path: root/libexec/rshd/rshd.c
AgeCommit message (Collapse)Author
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2008-04-08should not call setpwent(); millert agreesTheo de Raadt
2004-11-17remove NI_WITHSCOPEID (which is not standard)Jun-ichiro itojun Hagino
2003-08-12Convert to use poll(2) instead of static select; OK deraadt@Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-09-06use socklen_t more; henning okTheo de Raadt
2002-07-03ansi on a file which idiots believe is not here anymoreTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-05-22a bunch more strcpy -> strlcpy and sprintf -> snprintfTheo de Raadt
2002-03-16Add missing login_close() call.Todd C. Miller
2002-03-16auth_approval() calls getpwnam() which can modify the stashed passwdTodd C. Miller
struct. Use auth_setpwd() to stash a copy of the struct so auth_approval() doesn't need to use getpwnam(). Closes PR 2470.
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-11strncpy vs strlcpy, some strlen missuse.Michael Shalayeff
some other related minor cleanups, and spaces. millert@ ok
2001-05-29Call auth_checknologin() and auth_approval() as appropriate for BSDTodd C. Miller
authentication.
2001-02-04Use _PW_NAME_LEN+1, not 16 for size of remote/local usernames variablesTodd C. Miller
since rcmd(3) sends strlen(pw_name)+1 bytes.
2001-01-28$OpenBSD$Niklas Hallqvist
2000-11-10correct call to freeaddrinfo. do not free region before referenced.Jun-ichiro itojun Hagino
reported by ryo@iij.ad.jp for kame/netbsd, and aaron.
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-08-20Add calls to setusercontext() and login_get*(). We basically callTodd C. Miller
setusercontext() in most places where previously we did a setlogin(). Add default login.conf file and put root in the "daemon" login class.
2000-03-09-Wall type correctnessTheo de Raadt
2000-01-27make rshd and rlogind IPv6-ready.Jun-ichiro itojun Hagino
1999-11-15logging getpeername() failures is a waste of timeTheo de Raadt
1998-07-12indentTheo de Raadt
1998-07-10Make sure port is in allowed range before trying to get a reserved port.Todd C. Miller
1998-07-10do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabblingTheo de Raadt
1998-07-09this is rshd, not rlogindTodd C. Miller
1998-06-22The x option is not used if CRYPT is turned off.Artur Grabowski
1998-06-03Make warnings disappear.Angelos D. Keromytis
1998-05-15cleanup and build with -WallArtur Grabowski
1998-02-03whack _exit(); gnat@prometheus.frii.comTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-07-23tabifykstailey
1997-06-29new location of des.hNiels Provos
1997-06-15rshd should give the same error message when the user doesn't existTodd C. Miller
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>.
1997-02-13if i find one more little problem, and have to make one more littleTheo de Raadt
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!
1997-02-13option handling is a bitchTheo de Raadt
1997-02-13ok, i finally learned about struct ipoptionTheo de Raadt
1997-02-05do not warn about valid options; invalid options correctly quitTheo de Raadt
1997-02-05need not clear options since bad ones cause exit; ↵Theo de Raadt
provos@ws1.physnet.uni-hamburg.de
1997-02-05IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed out byTheo de Raadt
provos@wserver.physnet.uni-hamburg.de. also another 1-char buffer overflow.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-22Deal with _POSIX_SAVED_IDS when relinquishing privilegesThorsten Lockert
1996-11-01argument type nitNiklas Hallqvist
1996-10-26set $LOGNAME fore POSIXTodd C. Miller
1996-07-23require stderr to be > IPPORT_RESERVED/2 (hope this does not break anything...)Theo de Raadt
1996-07-22seteuid for chdirTheo de Raadt