summaryrefslogtreecommitdiff
path: root/usr.bin/login
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-04-02 07:01:34 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-04-02 07:01:34 +0000
commitb003f5e24740be322a995ec0279a3f8daf05ad9b (patch)
tree65d0f3ef41a6433842269799ff9662779a3ac193 /usr.bin/login
parent7c69c2d5259e7705d49d27fce9648fc3ad3bad24 (diff)
tweak the -LR options, after similar changes to tcpdrop(8); ok deraadt
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.114
-rw-r--r--usr.bin/login/login.c8
2 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/login/login.1 b/usr.bin/login/login.1
index b469d6eed2c..043e2f68906 100644
--- a/usr.bin/login/login.1
+++ b/usr.bin/login/login.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: login.1,v 1.25 2007/03/26 14:29:37 jmc Exp $
+.\" $OpenBSD: login.1,v 1.26 2007/04/02 07:01:33 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -39,8 +39,8 @@
.Nm login
.Op Fl fp
.Op Fl h Ar hostname
-.Op Fl L Ar local-ip
-.Op Fl R Ar remote-ip
+.Op Fl L Ar local-addr
+.Op Fl R Ar remote-addr
.Op Fl u Ar username
.Op Ar user
.Sh DESCRIPTION
@@ -75,10 +75,10 @@ logged in user is logging in as themselves.
.It Fl h Ar hostname
Specifies the host from which the connection was received.
This option may only be used by the superuser.
-.It Fl L Ar local-ip
+.It Fl L Ar local-addr
The
.Fl L
-option specifies the local IP address of a socket.
+option specifies the local address of a socket.
This information is passed on to any classify script (see
.Xr login.conf 5 ) .
.It Fl p
@@ -88,10 +88,10 @@ discards any previous environment.
The
.Fl p
option disables this behavior.
-.It Fl R Ar remote-ip
+.It Fl R Ar remote-addr
The
.Fl R
-option specifies the remote IP address of a socket.
+option specifies the remote address of a socket.
This information is passed on to any classify script (see
.Xr login.conf 5 ) .
.It Fl u Ar username
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 35366029c5d..d70f2b269cd 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login.c,v 1.56 2007/03/26 14:29:37 jmc Exp $ */
+/* $OpenBSD: login.c,v 1.57 2007/04/02 07:01:33 jmc Exp $ */
/* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */
/*-
@@ -73,7 +73,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
-static const char rcsid[] = "$OpenBSD: login.c,v 1.56 2007/03/26 14:29:37 jmc Exp $";
+static const char rcsid[] = "$OpenBSD: login.c,v 1.57 2007/04/02 07:01:33 jmc Exp $";
#endif /* not lint */
/*
@@ -263,8 +263,8 @@ main(int argc, char *argv[])
if (!uid)
syslog(LOG_ERR, "invalid flag %c", ch);
(void)fprintf(stderr,
- "usage: login [-fp] [-h hostname] [-L local-ip] "
- "[-R remote-ip] [-u username]\n\t[user]\n");
+ "usage: login [-fp] [-h hostname] [-L local-addr] "
+ "[-R remote-addr] [-u username]\n\t[user]\n");
quickexit(1);
}
argc -= optind;