Commit Graph

36 Commits

Author SHA1 Message Date
enami
ac4742896b Fix signal delivery to remote process; As described in rcmd(3), a signal
is delivered to the remote process via the secondary channel.  So,
the backend driver, rcmd(1), is responsible to watch the file descriptor 2
and transfer the data to the remote process, rather than receiving signal
by itself.  Previously, signal generated by tty was sent since rcmd was
incorrectly generated the data, but, for example, signal sent to rsh command
by kill command was ignored.
2014-06-08 02:44:15 +00:00
enami
bd8959c84b Whitespace nits. 2014-06-08 02:02:41 +00:00
enami
97fb545d9f Remove kerberos support code completely. It no longer compiles anyway.
OK'ed by christos on tech-userlevel.
2014-06-08 01:44:52 +00:00
joerg
d27ef895bf static + __dead 2011-08-29 14:22:46 +00:00
gson
98bb28c039 putenv() no longer accepts a const string 2010-10-02 09:24:16 +00:00
lukem
fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
wiz
02b5f03672 Remove some more old kerberos4 code. Simplify usage. 2006-03-23 23:49:07 +00:00
ginsbach
1a75882940 Fix Coverity issue 1236, negative return from read() passed to write()
as a large unsigned valued when read() is interrupted (errno == EINTR).
2006-03-17 21:52:41 +00:00
ginsbach
733e4b48e2 Add -4 and -6 to usage. 2005-03-11 03:20:23 +00:00
ginsbach
605994654d Support -4 and -6. Approved by christos. 2005-03-11 02:45:24 +00:00
ginsbach
efcf0fc8a1 Whitespace fix-ups. 2005-01-13 23:02:28 +00:00
christos
e4ff3093af remove unused variable 2004-10-16 07:36:08 +00:00
christos
d9d5b79249 - 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
2004-10-16 02:03:54 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun
adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
joff
2c4a7474a0 use TCP_NODELAY 2003-06-14 22:43:31 +00:00
hubertf
34f17e9696 set s_proto properly
XXX this doesn't help with rsh insisting on a reserved port, which of course
	fails for non root users. and which only seems to happen when given
	ports >1023, funny enough. anyone? :/
2003-05-22 02:14:03 +00:00
itojun
d83368eddb use strlcpy 2003-05-15 00:47:48 +00:00
hubertf
fa337680d6 Add -p option to rsh and rlogin to allow specifying a non-standard port
number.
2003-04-07 01:46:41 +00:00
itojun
d118467d1c use strlcpy 2002-11-16 13:45:10 +00:00
wiz
4cdb6cf0d7 Remove #ifdef __STDC__. De-__P() and ANSIfy. 2002-06-14 00:51:04 +00:00
cgd
a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
itojun
309d0c990b IPv6 support. (I thought I've committed these but was not yet) 2000-01-31 14:19:34 +00:00
christos
a8110bb91b Add prototype for orcmd. 1997-07-20 20:44:23 +00:00
christos
03507045bc Fix compiler warnings. 1997-07-06 19:31:28 +00:00
christos
47af6101e4 - PR/3727: Wolfgang Rupprecht: rsh takes 80% of the cpu
- rsh/rcmd combinations don't die sometimes, and spin in poll loops
    + detect errors from read/write etc, don't ignore them in some cases
    + use INFTIM instead of 0 in poll
    + detect invalid file descriptors in poll
    + use varargs/stdarg as appropriate
    + use posix signal calls
    + EWOULDBLOCK -> EAGAIN
1997-06-16 20:54:16 +00:00
mrg
66bc7bd651 fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
- don't pass pw->pw_name into functions; make a copy.
1997-06-05 16:10:46 +00:00
mrg
32b4c34ed2 rcmd(1) does not use argv[0] for hostname, like rsh does.
apply patch for pr#3695 from <hannken@ppp-jhi.eis.cs.tu-bs.de>.
1997-06-02 11:57:23 +00:00
mrg
04bd3838df add bits to allow this to be compiled as rcmd. 1997-05-26 14:29:36 +00:00
mikel
2a8b3fc882 use FD_SETSIZE instead of manifest constant for select(2); from Rolf
Grossman in PR bin/3338.
1997-03-19 05:36:59 +00:00
mrg
2d7faefcd4 merge lite2 changes. 1997-02-16 15:01:02 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc
9e981c23ff sys/signal.h -> signal.h 1995-06-27 00:31:00 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00