diff options
| author | gwr <gwr@NetBSD.org> | 1996-11-14 19:25:50 +0000 |
|---|---|---|
| committer | gwr <gwr@NetBSD.org> | 1996-11-14 19:25:50 +0000 |
| commit | d2ae1a2c2f40cdaf5c0f4558967e2f46cc34ccf3 (patch) | |
| tree | 7fdb4b393b9d42daa0d8fcca5c18822d5d0230cc /libexec/getty | |
| parent | 9d69345016a8c52600664a38a1422bc85ac53e64 (diff) | |
After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root")
Diffstat (limited to 'libexec/getty')
| -rw-r--r-- | libexec/getty/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c index d60e59785e3..98088a27cab 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.18 1996/07/31 20:40:34 thorpej Exp $ */ +/* $NetBSD: main.c,v 1.19 1996/11/14 19:25:50 gwr Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93"; #else -static char rcsid[] = "$NetBSD: main.c,v 1.18 1996/07/31 20:40:34 thorpej Exp $"; +static char rcsid[] = "$NetBSD: main.c,v 1.19 1996/11/14 19:25:50 gwr Exp $"; #endif #endif /* not lint */ @@ -209,6 +209,8 @@ main(argc, argv) chown(ttyn, 0, 0); chmod(ttyn, 0600); revoke(ttyn); + if (ttyaction(ttyn, "getty", "root")) + syslog(LOG_ERR,"%s: ttyaction failed", ttyn); /* * Delay the open so DTR stays down long enough to be detected. */ |
