History log of /src/usr.bin/rlogin/rlogin.c |
Revision | | Date | Author | Comments |
1.48 |
| 03-Aug-2021 |
chs | revert rev 1.45: "PR/54435: Adjust for new kernel behavior of soreceive(9) clearing MSG_OOB"
That change was trying to make rlogin work again after the SIOCATMARK ioctl was broken, but that kernel bug has now been fixed, so the original rlogin code now works again. Further, the changed rlogin code actually did the wrong thing, by treating reception of the MSG_OOB byte as meaning that we are now "at the mark", but that is not true... we are "at the mark" only when we have reached the point in the stream where the MSG_OOB byte was originally, as indicated by SIOCATMARK. So going back to the previous code seems best all around. ok'd by christos.
|
1.47 |
| 03-May-2020 |
christos | PR/54435: Adjust for new kernel behavior of soreceive(9) clearing MSG_OOB when receiving the oob message. This made SIOCATMARK return always 0 since the oob message was cleared. Instead, use recvmsg(2) to determine if the message was oob or not. This works with both the old and new kernel and it is not racy.
|
1.46 |
| 03-May-2020 |
christos | (foo *) 0 -> NULL int -> ssize_t/size_t
|
1.45 |
| 04-Oct-2019 |
mrg | msg: avoid passing the same pointer in multiple arguments for restrict marked arguments: - sigaction() wants separate in/out - use memmove() not memcpy() for overlapping regions (this may fix a real bug in nvi -- but it seems unlikely) - select() wants separate read/write/except - sigprocmask() wants separate set/oset
|
1.44 |
| 28-Oct-2015 |
shm | branches: 1.44.16; Added missing sa_mask initialization (CID 979636)
OK kamil@ mrg@
|
1.43 |
| 02-Mar-2013 |
wiz | Sync usage with man page.
|
1.42 |
| 02-Mar-2013 |
christos | PR/47584: Steffen Daoden: Add option to turn off Nagle to rlogin
|
1.41 |
| 06-Sep-2011 |
joerg | branches: 1.41.2; 1.41.8; static + __dead
|
1.40 |
| 13-Apr-2009 |
lukem | Fix sign-compare issues
|
1.39 |
| 21-Jul-2008 |
lukem | branches: 1.39.6; Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.38 |
| 17-Jan-2007 |
hubertf | branches: 1.38.12; Remove duplicate #includes From Slava Semushin <slava.semushin@gmail.com>, via private mail
|
1.37 |
| 09-May-2006 |
mrg | change (mostly) int to socklen_t. GCC 4 doesn't like that int and socklen_t are different signness.
|
1.36 |
| 23-Mar-2006 |
wiz | Remove some more old kerberos4 code.
|
1.35 |
| 11-Mar-2005 |
ginsbach | Support -4 and -6. Approved by christos.
|
1.34 |
| 08-Jan-2005 |
ginsbach | getuid() returns a uid_t not int, so make uid uid_t.
|
1.33 |
| 21-Dec-2004 |
ginsbach | Dead code clean up: * The function speed(), imported from 4.4BSD-Lite2, has never been used by NetBSD. Obtained from FreeBSD. * Finish removing -L (litout) option. This has not been supported since rev. 1.5 (NetBSD 1.0). The option still appeared in the usage and man page. Obtained from FreeBSD. * In function doit(), dead code imported from 4.4BSD-Lite2, dealing with termios. NetBSD cracked this nut differently long before this import. Obtained from FreeBSD.
|
1.32 |
| 02-Dec-2004 |
ginsbach | Remove stray ; in comment.
|
1.31 |
| 16-Oct-2004 |
christos | - Fix bug in port parsing code; s_port must be in network byte order. - Factor out port parsing code and add error checking to it. - WARNS=3
|
1.30 |
| 31-Mar-2004 |
jmmv | Drop some unnecessary whitespaces from the usage message. Closes PR bin/24993 by Kouichirou Hiratsuka.
|
1.29 |
| 07-Aug-2003 |
agc | branches: 1.29.2; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.28 |
| 07-Apr-2003 |
hubertf | Add -p option to rsh and rlogin to allow specifying a non-standard port number.
|
1.27 |
| 16-Nov-2002 |
itojun | use strlcpy
|
1.26 |
| 14-Jun-2002 |
wiz | Remove #ifdef __STDC__. De-__P() and ANSIfy.
|
1.25 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
1.24 |
| 31-Jan-2000 |
itojun | IPv6 support. (I thought I've committed these but was not yet)
|
1.23 |
| 11-Jul-1999 |
thorpej | Clean up some warnings in the Kerberos section.
|
1.22 |
| 30-Apr-1999 |
christos | dest_realm is used uninitialized! How did this ever work?
|
1.21 |
| 11-Jul-1998 |
mrg | branches: 1.21.2; - clean up some of the kerberos option parsing code - remove support for old BSD systems, seeing that we only have posix signal support here anyway.
|
1.20 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF
|
1.19 |
| 28-Jun-1997 |
tls | Fix several bugs in Kerberos support due to an accidental commit months ago of an incomplete version of the code. Now works; also now falls back to 'old' rlogin correctly.
|
1.18 |
| 05-Jun-1997 |
mrg | fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>. - don't pass pw->pw_name into functions; make a copy.
|
1.17 |
| 17-Feb-1997 |
mrg | ensure we do not dump core.
|
1.16 |
| 09-Jan-1997 |
tls | RCS ID police
|
1.15 |
| 09-Jan-1997 |
tls | Sync to 4.4BSD-Lite2
|
1.14 |
| 10-Aug-1996 |
explorer | fix pr bin/2659 in a different way
|
1.13 |
| 03-Jul-1996 |
thorpej | Fix typo/thinko in last change: an occurrence of "while" should have been a "for".
|
1.12 |
| 23-Jun-1996 |
mrg | Deal with the case where `$TERM/<baudrate>' exceeds 1024 chars.
|
1.11 |
| 19-Jun-1996 |
mrg | snprintf() adds the last nul for us
|
1.10 |
| 19-Jun-1996 |
mrg | use strncat/snprintf
|
1.9 |
| 13-Jun-1996 |
christos | Fix PR/2546: For non canonical input processing set VMIN=1,VTIME=0. Otherwise things might not work if these are not set properly in the current tty.
|
1.8 |
| 05-Oct-1995 |
mycroft | branches: 1.8.6; TIOCFLUSH --> tcflush(). From Matt Green.
|
1.7 |
| 17-May-1995 |
mycroft | Always turn off ISIG and IEXTEN.
|
1.6 |
| 03-May-1995 |
mycroft | Change the interface to stop().
|
1.5 |
| 03-May-1995 |
mycroft | Use POSIX tty semantics.
|
1.4 |
| 21-Mar-1995 |
cgd | clean up import.
|
1.3 |
| 05-Sep-1993 |
deraadt | teach rlogin about new higher baud rates, from <bob@speakez.com>
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 |
| 09-Jan-1997 |
tls | Import from 4.4BSD-Lite2
|
1.1.1.2 |
| 21-Mar-1995 |
cgd | usr.bin/rlogin from Lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.8.6.2 |
| 19-Feb-1997 |
rat | Pullup 1.16 -> 1.17 by request from Matt Green. Fixes security bugs.
|
1.8.6.1 |
| 20-Jul-1996 |
jtc | Pulled up from rev 1.13 by request from rAT
|
1.21.2.1 |
| 30-Apr-1999 |
perry | pullup 1.21->1.22 (christos)
|
1.29.2.2 |
| 12-Nov-2004 |
jmc | Pullup rev 1.31 (requested by hubert in ticket #928)
- Fix bug in port parsing code; s_port must be in network byte order. - Factor out port parsing code and add error checking to it.
|
1.29.2.1 |
| 01-Apr-2004 |
jmc | Pullup rev 1.30 (requested by jmmv in ticket #31)
Drop some unnecessary whitespaces from the usage message. PR#24993
|
1.38.12.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.39.6.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.41.8.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.41.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.44.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|