diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-07-05 21:54:07 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-07-05 21:54:07 +0000 |
commit | d81c3dbd425853cec94b19fbb24c5d4a100c5a5b (patch) | |
tree | 29a5838da24c506cbc8e4cf7a5a1be61c72df4af /usr.sbin/faithd/rsh.c | |
parent | 1be1972c4bf843ec145ece32a44722bc74b1d255 (diff) | |
download | src-d81c3dbd425853cec94b19fbb24c5d4a100c5a5b.tar.gz src-d81c3dbd425853cec94b19fbb24c5d4a100c5a5b.zip |
Notes
Diffstat (limited to 'usr.sbin/faithd/rsh.c')
-rw-r--r-- | usr.sbin/faithd/rsh.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/faithd/rsh.c b/usr.sbin/faithd/rsh.c index e66ced1ee811..735f01e8812e 100644 --- a/usr.sbin/faithd/rsh.c +++ b/usr.sbin/faithd/rsh.c @@ -1,7 +1,9 @@ +/* $KAME$ */ + /* * Copyright (C) 1997 and 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -13,7 +15,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -69,7 +71,7 @@ rsh_relay(int s_src, int s_dst) if (error == -1) exit_failure("select %d: %s", s_src, ERRSTR); else if (error == 0) - exit_failure("connection timeout"); + exit_failure("connecion timeout"); n = read(s_src, rshbuf, sizeof(rshbuf)); if (rshbuf[0] != 0) { @@ -112,7 +114,7 @@ relay(int src, int dst) close(dst); close(s_ctl); close(s_ctl6); - exit_success("terminating rsh/control connections"); + exit_success("terminating rsh/contorol connections"); break; default: write(s_snd, rshbuf, n); @@ -180,7 +182,7 @@ rsh_dual_relay(int s_src, int s_dst) if (error == -1) exit_failure("select 4 sockets: %s", ERRSTR); else if (error == 0) - exit_failure("connection timeout"); + exit_failure("connecion timeout"); if (half == NO && FD_ISSET(s_src, &readfds)) { s_rcv = s_src; |