diff options
author | kris <kris@FreeBSD.org> | 2000-07-05 21:54:07 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-07-05 21:54:07 +0000 |
commit | 13d90d944f154efa9feb5a06266329c85d01f979 (patch) | |
tree | 7fc107473d0c5c157c2ac2603e6628db258d9159 /usr.sbin/faithd/rsh.c | |
parent | 8a5ba0ae5fe6fbf7d2335ae09e1f86c01e466bbf (diff) | |
download | FreeBSD-src-13d90d944f154efa9feb5a06266329c85d01f979.zip FreeBSD-src-13d90d944f154efa9feb5a06266329c85d01f979.tar.gz |
Sync with latest KAME.
Obtained from: KAME
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 e66ced1..735f01e 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; |