summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemons/ChangeLog4
-rw-r--r--daemons/getty.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/daemons/ChangeLog b/daemons/ChangeLog
index c94f4711..f93ca603 100644
--- a/daemons/ChangeLog
+++ b/daemons/ChangeLog
@@ -1,3 +1,7 @@
+1999-09-23 Mark Kettenis <kettenis@gnu.org>
+
+ * getty.c (main): Report an error if login_tty failed.
+
1999-09-22 Roland McGrath <roland@baalperazim.frob.com>
* getty.c: Undo last change.
diff --git a/daemons/getty.c b/daemons/getty.c
index 02ebacff..4810e6dd 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -97,7 +97,8 @@ main (int argc, char **argv)
print_banner (tty, ttyname);
- login_tty (tty);
+ if (login_tty (tty) == -1)
+ syslog (LOG_ERR, "cannot set controlling terminal to %s: %m", ttyname);
asprintf (&arg, "TERM=%s", tt ? tt->ty_type : "unknown");