aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-11-25 07:17:15 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-11-25 07:17:15 +0000
commit943eade9edb89c4e6d963d9d619aba1af8c9286d (patch)
tree1eb44edddd04c005774023f4d3c71f51c10bd696 /libexec
parent3029b69f0b84c0ffdcd746db6190540bbb3ee35a (diff)
downloadsrc-943eade9edb89c4e6d963d9d619aba1af8c9286d.tar.gz
src-943eade9edb89c4e6d963d9d619aba1af8c9286d.zip
Sort #includes. Add rcsid. Add man page section in .Xrefs.
Notes
Notes: svn path=/head/; revision=31405
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rlogind/rlogind.816
-rw-r--r--libexec/rlogind/rlogind.c12
2 files changed, 15 insertions, 13 deletions
diff --git a/libexec/rlogind/rlogind.8 b/libexec/rlogind/rlogind.8
index 7c565e36872a..e3f359392318 100644
--- a/libexec/rlogind/rlogind.8
+++ b/libexec/rlogind/rlogind.8
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rlogind.8 8.1 (Berkeley) 6/4/93
-.\" $Id$
+.\" $Id: rlogind.8,v 1.8 1997/02/22 14:22:07 peter Exp $
.\"
.Dd June 4, 1993
.Dt RLOGIND 8
@@ -49,8 +49,8 @@ program. The server provides a remote login facility
with authentication based on privileged port numbers from trusted hosts.
.Pp
Options supported by
-.Nm rlogind :
-.Bl -tag -width Ds
+.Nm Ns :
+.Bl -tag -width indent
.It Fl D
Set TCP_NODELAY socket option. This improves responsiveness at the expense of
some additional network traffic.
@@ -65,7 +65,7 @@ Disable keep-alive messages.
.El
.Pp
The following options are valid only if Kerberos is in use:
-.Bl -tag -width Ds
+.Bl -tag -width indent
.It Fl k
Enable Kerberos authentication.
.It Fl v
@@ -109,7 +109,7 @@ Normal authentication is bypassed if the address verification fails.
.El
.Pp
Once the source port and address have been checked,
-.Nm rlogind
+.Nm
proceeds with the authentication process described in
.Xr rshd 8 .
It then allocates a pseudo terminal (see
@@ -132,7 +132,7 @@ prompted to log in as if on a standard terminal line.
The parent of the login process manipulates the master side of
the pseudo terminal, operating as an intermediary
between the login process and the client instance of the
-.Xr rlogin
+.Xr rlogin 1
program. In normal operation, the packet protocol described
in
.Xr pty 4
@@ -158,12 +158,12 @@ All initial diagnostic messages are indicated
by a leading byte with a value of 1,
after which any network connections are closed.
If there are no errors before
-.Xr login
+.Xr login 1
is invoked, a null byte is returned as in indication of success.
.Bl -tag -width Ds
.It Sy Try again.
A
-.Xr fork
+.Xr fork 2
by the server failed.
.El
.Sh SEE ALSO
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index e92b323bb888..b0227e6db13b 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -29,8 +29,6 @@
* 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.
- *
- * $Id: rlogind.c,v 1.17 1997/03/28 15:48:16 imp Exp $
*/
#ifndef lint
@@ -40,7 +38,11 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static const char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
/*
@@ -68,14 +70,14 @@ static const char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93";
#include <arpa/inet.h>
#include <netdb.h>
+#include <errno.h>
+#include <libutil.h>
#include <pwd.h>
#include <syslog.h>
-#include <errno.h>
#include <stdio.h>
-#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include <libutil.h>
+#include <unistd.h>
#include "pathnames.h"
#ifndef TIOCPKT_WINDOW