summaryrefslogtreecommitdiffstats
path: root/usr.bin/rlogin/rlogin.c
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-191-49/+49
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Generate the network byte order version of the window size structure in ajhb2011-04-261-6/+6
| | | | | | | temporary variable on the stack and then copy that into the output buffer so that the htons() conversions use aligned accesses. MFC after: 1 month
* Catch up with r57841 which removed the possible linking against libutilobrien2011-04-261-1/+0
| | | | by not bothering to include its API.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-2/+0
| | | | Tested with: make universe
* len and len2 work better as size_tdwmalone2005-11-131-1/+2
|
* Use socklen_t where appropriate.stefanf2005-08-051-1/+2
|
* Removed Kerberos remnants.ru2005-01-211-1/+1
|
* Use the POSIX tty interface instead of the old interface. This makestjr2003-09-281-95/+57
| | | | | | rlogin work properly without COMPAT_43. Obtained from: NetBSD (mycroft)
* Remove remnants of Kerberos -Kkx options.tjr2003-09-281-2/+2
|
* Dekerberise. The corresponding userland stuff has been dekerberisedmarkm2002-10-161-162/+24
| | | | | | for ages, and no-one seems to have noticed. Viva PAM! Fix some easy/trivial warnings while I'm here.
* Do not repeat option name in its definition. Use .Nm. In the sequence ``~.'',charnier2002-10-161-7/+11
| | | | | | ``.'' is not a sentence termination, it must be escaped to be put inside quotes. Abort if execv() fails by adding err(). Do not dot terminate error messages.
* Use POSIX macros for wait(2)-style status information instead of themike2002-06-031-4/+4
| | | | | deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int confusion.
* Really include <paths.h> (it seems it was brought in indirectly)des2002-05-081-0/+1
|
* Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.des2002-05-081-2/+8
| | | | Sponsored by: DARPA, NAI Labs
* Easy warns fixes; use const, mark unused function parameters. Removemarkm2002-04-281-14/+13
| | | | unused includes.
* o unifdef -D__STDC__imp2002-03-231-77/+19
| | | | | o use ansi function definitions o remove OLDSUN
* remove __Pimp2002-03-221-19/+19
|
* Use SIGUSR1 to propogate SIGURG to the child; security measures preventfenner2002-02-271-2/+3
| | | | | the parent from sending SIGURG itself to the child. This fixes the problem of occasionally failing to pass the window size.
* [rlogin.1] Document the `-4' and `-6' options. Correct a typo.jkoshy2000-11-241-1/+1
| | | | [rlogin.c] Make the usage message match the code.
* getopt and friends are declared in <unistd.h>imp2000-09-041-2/+0
| | | | getopt returns -1 not EOF.
* Use libcrypto in place of libdes.markm2000-02-241-1/+1
|
* Add -4 and -6 options.shin2000-02-151-5/+14
| | | | | | | | | Current getaddrinfo() implemetation has a problem of too much resolving waiting time on INET6 enabled systems. -4 and -6 options can limit name resolving address family and is a possible workaround for the problem. Approved by: jkh
* several tcp apps IPv6 updateshin2000-01-251-4/+14
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed usage message to almost match the man page. The old -d option andbde1999-05-271-12/+9
| | | | | | | | | | | the new -i option were missing. Fixed style bugs in previous commit: (1) initialisation of a local variable in its declaration. (2) inconsistency of (1) with style of nearby code. (3) disorder of declaration for (1). (4) a line longer than 80 characters. (5) bitrot in the printf() -> err() cleanups to help bloat the line in (4).
* Add a -i localname switch (restricted to root) to specify a differentpeter1999-05-251-5/+15
| | | | | | | | | local "login" name for rcmd(3). This is particularly useful for things like portslave and other packages with terminal server functionality where a login can either run ppp locally or get shunted off to another box via rlogin depending on radius authentication etc. Quite often the local box doesn't even have accounts, so a flag such as this is needed. Obviously this is restricted to callers with uid == 0.
* Use KJH's auth.conf parser to turn on/off Kerberos in userland.markm1998-10-091-1/+8
|
* Quite a while back KTH (who are the good folks who wrote our KerberosIV)markm1998-03-261-15/+17
| | | | | | | | announced a K4 weakness with their rsh/rlogins. We were not put in any danger by this, as we were not using KTH rlogin/rsh, but the patches in themselves, had some good points. This lot means we can run our rlogin without it being SUID root. Win win win. There are other KTH cleanups as well.
* Changes for KTH KerberosIV.markm1997-09-281-49/+17
| | | | Also quieten -Wall a bit.
* Use err(3). Document -l flag.charnier1997-08-051-33/+22
| | | | Obtained from: OpenBSD
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-5/+5
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* Add Bruce's improvement to security patchpst1996-07-251-1/+6
|
* Do a bounds check on the strcpy of environment variables onto the stack.pst1996-07-151-1/+1
|
* #include <kerberosIV/des.h> -> #include <des.h>markm1996-02-111-1/+1
|
* Rename des_set_key -> des_set_key_krb. (libdes conflict)markm1996-02-031-1/+1
|
* Kerberos can now deal with multi-homed clients.gibbs1995-10-051-1/+1
| | | | | | | | | | | | | | Kerberos obtains a network address for the local host from the routing tables and uses it consistently for all Kerberos transactions. This ensures that packets only leave the *authenticated* interface. Clients who open and use their own sockets for encrypted or authenticated correspondance to kerberos services should bind their sockets to the same address as that used by kerberos. krb_get_local_addr() and krb_bind_local_addr() allow clients to obtain the local address or bind a socket to the local address used by Kerberos respectively. Reviewed by: Mark Murray <markm>, Garrett Wollman <wollman> Obtained from: concept by Dieter Dworkin Muller <dworkin@village.org>
* Back out speed reducing to 38400 for old remote rlogind.ache1995-08-031-3/+1
| | | | | | | I do some digging out on this subject and found that remote rlogind may reduce big speeds to 38400 by itself and (as more often rlogind variant) speed setting ioctl fails, so speed left on 9600. In all cases it doesn't do any real harm.
* Reduce passed speed to 38400, like telnet does too.ache1995-08-011-1/+3
| | | | Remote rlogind may not understand speeds > 38400.
* Added "D" option to usage clause.dg1995-05-031-3/+3
|
* Added a "-D" option to set the TCP_NODELAY socket option.dg1995-05-031-4/+12
|
* Move the call to des_set_key to after the kerberos initialisation, removingdfr1994-09-261-3/+3
| | | | assumption about the implementation of des_read/des_write.
* Reviewed by:ats1994-09-061-1/+1
| | | | Add entries for the speed 57600 and 115200 to the allowed speeds.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+941
OpenPOWER on IntegriCloud