summaryrefslogtreecommitdiffstats
path: root/usr.sbin/faithd
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-11-28 18:11:06 +0000
committercharnier <charnier@FreeBSD.org>2000-11-28 18:11:06 +0000
commit963cc312d0ec623f0651f4334eddeb71ffc0ca3c (patch)
tree9cccf159516284dbd3bc29702c11f403e3d831a4 /usr.sbin/faithd
parent46ed81751fc2748cd7d10705ac47b37aa7bb6fb1 (diff)
downloadFreeBSD-src-963cc312d0ec623f0651f4334eddeb71ffc0ca3c.zip
FreeBSD-src-963cc312d0ec623f0651f4334eddeb71ffc0ca3c.tar.gz
Make enumerated list for flags. Spelling.
Diffstat (limited to 'usr.sbin/faithd')
-rw-r--r--usr.sbin/faithd/faithd.818
-rw-r--r--usr.sbin/faithd/faithd.c4
-rw-r--r--usr.sbin/faithd/rsh.c4
3 files changed, 12 insertions, 14 deletions
diff --git a/usr.sbin/faithd/faithd.8 b/usr.sbin/faithd/faithd.8
index 5b292de..d7e0fdc 100644
--- a/usr.sbin/faithd/faithd.8
+++ b/usr.sbin/faithd/faithd.8
@@ -151,22 +151,20 @@ will work as TCP relaying daemon for specified
.Ar service
as described above.
.Pp
-If
-.Fl d
-is given, debugging information will be generated using
+The following options are available:
+.Bl -tag -width indent
+.It Fl d
+Debugging information will be generated using
.Xr syslog 3 .
-If
-.Fl p
-is given,
-.Nm
-will use privileged TCP port number as source port,
+.It Fl p
+Use privileged TCP port number as source port,
for IPv4 TCP connection toward final destination.
For relaying
.Xr ftp 1
and
.Xr rlogin 1 ,
-.Fl p
-is not necessary as special program code is supplied.
+this flag is not necessary as special program code is supplied.
+.El
.Pp
.Nm
will relay both normal and out-of-band TCP data.
diff --git a/usr.sbin/faithd/faithd.c b/usr.sbin/faithd/faithd.c
index 65c2ab3..fddf402 100644
--- a/usr.sbin/faithd/faithd.c
+++ b/usr.sbin/faithd/faithd.c
@@ -191,7 +191,7 @@ inetd_main(int argc, char **argv)
openlog(logname, LOG_PID | LOG_NOWAIT, LOG_DAEMON);
if (argc >= MAXARGV)
- exit_failure("too many augments");
+ exit_failure("too many arguments");
serverarg[0] = serverpath = path;
for (i = 1; i < argc; i++)
serverarg[i] = argv[i];
@@ -359,7 +359,7 @@ daemon_main(int argc, char **argv)
syslog(LOG_INFO, "Staring faith daemon for %s port", service);
play_service(s_wld);
- /*NOTRECHED*/
+ /*NOTREACHED*/
exit(1); /*pacify gcc*/
}
diff --git a/usr.sbin/faithd/rsh.c b/usr.sbin/faithd/rsh.c
index 735f01e..6d81147 100644
--- a/usr.sbin/faithd/rsh.c
+++ b/usr.sbin/faithd/rsh.c
@@ -71,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("connecion timeout");
+ exit_failure("connection timeout");
n = read(s_src, rshbuf, sizeof(rshbuf));
if (rshbuf[0] != 0) {
@@ -182,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("connecion timeout");
+ exit_failure("connection timeout");
if (half == NO && FD_ISSET(s_src, &readfds)) {
s_rcv = s_src;
OpenPOWER on IntegriCloud