summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-05 18:48:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-05 18:48:59 +0000
commit2fe5b131366b45c805bd22b27dd0192f1243611f (patch)
tree219f429ba4a31fc53b08e17250104a024fdcb734
parentcc9cc9b47e10304de0196eb8e4362c3e9fcb503d (diff)
man page; mrg
-rw-r--r--libexec/uucpd/Makefile4
-rw-r--r--libexec/uucpd/uucpd.855
-rw-r--r--libexec/uucpd/uucpd.c13
3 files changed, 65 insertions, 7 deletions
diff --git a/libexec/uucpd/Makefile b/libexec/uucpd/Makefile
index af8311bb217..c66538e8f40 100644
--- a/libexec/uucpd/Makefile
+++ b/libexec/uucpd/Makefile
@@ -1,8 +1,8 @@
# from: @(#)Makefile 5.3 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.3 1997/03/26 00:34:39 deraadt Exp $
+# $Id: Makefile,v 1.4 1998/07/05 18:48:56 deraadt Exp $
CFLAGS+= -DBSDINETD
PROG= uucpd
-NOMAN= noman
+MAN= uucpd.8
.include <bsd.prog.mk>
diff --git a/libexec/uucpd/uucpd.8 b/libexec/uucpd/uucpd.8
new file mode 100644
index 00000000000..69d6ebebcab
--- /dev/null
+++ b/libexec/uucpd/uucpd.8
@@ -0,0 +1,55 @@
+.\" $OpenBSD: uucpd.8,v 1.1 1998/07/05 18:48:58 deraadt Exp $
+.\"
+.\" Copyright (c) 1998 Matthew R. Green
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd July 04, 1998
+.Dt UUCPD 8
+.Os
+.Sh NAME
+.Nm uucpd
+.Nd unix to unix copy protocol daemon
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+The
+.Nm
+daemon reads a username and password, and then executes
+.Xr uucico 8 ,
+the UUCP file transfer daemon, if the
+the username and password match a valid account and
+the account's shell is
+.Dq /usr/libexec/uucp/uucico .
+.Nm
+is started by
+.Xr inetd 8 .
+.Sh HISTORY
+The
+.Nm
+program was first made available in
+.Bx 4.2 .
+.Sh SEE ALSO
+.Xr inetd 8 .
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c
index 3de7ec763e6..20da023a83f 100644
--- a/libexec/uucpd/uucpd.c
+++ b/libexec/uucpd/uucpd.c
@@ -42,7 +42,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: uucpd.c,v 1.13 1998/05/22 04:33:08 deraadt Exp $";
+static char rcsid[] = "$Id: uucpd.c,v 1.14 1998/07/05 18:48:58 deraadt Exp $";
#endif /* not lint */
/*
@@ -170,7 +170,8 @@ struct sockaddr_in *sinp;
alarm(60);
do {
- printf("login: "); fflush(stdout);
+ printf("login: ");
+ fflush(stdout);
if (readline(user, sizeof user) < 0) {
fprintf(stderr, "user read\n");
return;
@@ -180,7 +181,8 @@ struct sockaddr_in *sinp;
user[8] = '\0';
pw = getpwnam(user);
if (pw == NULL) {
- printf("Password: "); fflush(stdout);
+ printf("Password: ");
+ fflush(stdout);
if (readline(passwd, sizeof passwd) < 0) {
fprintf(stderr, "passwd read\n");
return;
@@ -189,7 +191,8 @@ struct sockaddr_in *sinp;
return;
}
if (pw->pw_passwd && *pw->pw_passwd != '\0') {
- printf("Password: "); fflush(stdout);
+ printf("Password: ");
+ fflush(stdout);
if (readline(passwd, sizeof passwd) < 0) {
fprintf(stderr, "passwd read\n");
return;
@@ -201,7 +204,7 @@ struct sockaddr_in *sinp;
}
}
if (strcmp(pw->pw_shell, _PATH_UUCICO)) {
- fprintf(stderr, "Login incorrect.");
+ fprintf(stderr, "Login incorrect.\n");
return;
}
alarm(0);