summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-12-04 04:11:45 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-12-04 04:11:45 +0000
commita7cbb4e79e9d330249d005eace1787b8247e8af2 (patch)
treee86cfa1bdaaeeadc2181383aea8dfcfcdcef6f7c
parent3ae35f72a677a805d9e90c7e664d46f6006c1ba1 (diff)
Take advantage of new "-u" flag in login(1).
-rw-r--r--libexec/rlogind/rlogind.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 550e2373dc5..5f534be51be 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; */
-static char *rcsid = "$Id: rlogind.c,v 1.10 1996/11/11 05:34:41 mickey Exp $";
+static char *rcsid = "$Id: rlogind.c,v 1.11 1996/12/04 04:11:44 millert Exp $";
#endif /* not lint */
/*
@@ -317,11 +317,11 @@ doit(f, fromp)
hostname);
#endif
- execl(_PATH_LOGIN, "login", "-p", "-h", hostname, "-f",
- "--", lusername, (char *)NULL);
+ execl(_PATH_LOGIN, "login", "-p", "-h", hostname, "-u",
+ rusername, "-f", "--", lusername, (char *)NULL);
} else
execl(_PATH_LOGIN, "login", "-p", "-h", hostname,
- "--", lusername, (char *)NULL);
+ "-u", rusername, "--", lusername, (char *)NULL);
fatal(STDERR_FILENO, _PATH_LOGIN, 1);
/*NOTREACHED*/
}