summaryrefslogtreecommitdiffstats
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-11-25 07:17:15 +0000
committercharnier <charnier@FreeBSD.org>1997-11-25 07:17:15 +0000
commit4f3f135e7c5a1163ebf735923864c87e7344530d (patch)
treef21eee37ab1905ea632c5728bba5e9d2ec0945bb /libexec/rlogind
parenta8f4ef9a1d73a061da542afd0f8035bae3f08053 (diff)
downloadFreeBSD-src-4f3f135e7c5a1163ebf735923864c87e7344530d.zip
FreeBSD-src-4f3f135e7c5a1163ebf735923864c87e7344530d.tar.gz
Sort #includes. Add rcsid. Add man page section in .Xrefs.
Diffstat (limited to 'libexec/rlogind')
-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 7c565e3..e3f3593 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 e92b323..b0227e6 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
OpenPOWER on IntegriCloud