diff options
author | Miles Bader <miles@gnu.org> | 1996-07-20 05:07:45 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-20 05:07:45 +0000 |
commit | 80bcb537e85698834e499c489456687e8cb75990 (patch) | |
tree | 77ba115140581171ffea96f5877577c404008159 /daemons | |
parent | 258173b2ff624b1641148e03e7a5398aade9284f (diff) |
(main): Get the tty name from the right element in ARGV.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/getty.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |