From 80bcb537e85698834e499c489456687e8cb75990 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 20 Jul 1996 05:07:45 +0000 Subject: (main): Get the tty name from the right element in ARGV. --- daemons/getty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemons') diff --git a/daemons/getty.c b/daemons/getty.c index e6bd939b..013c3e3a 100644 --- a/daemons/getty.c +++ b/daemons/getty.c @@ -72,9 +72,9 @@ main (int argc, char **argv) } /* Don't do anything with this for now. */ - linespec = argv[1]; + linespec = argv[2]; - tt = getttynam (argv[1]); + tt = getttynam (argv[2]); asprintf (&ttyname, "%s/%s", _PATH_DEV, argv[2]); chown (ttyname, 0, 0); -- cgit v1.2.3