summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-01 21:57:43 +0000
committerMiles Bader <miles@gnu.org>1996-07-01 21:57:43 +0000
commit97845c7d931be5b14eb550302ff2633e07566370 (patch)
tree860c53ca363df45e58afa557769b0312593fdea4
parentf361e55af15c4ad4d89d910ab4964aae60cb827c (diff)
Don't test for dialups if TT == 0.
-rw-r--r--daemons/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/getty.c b/daemons/getty.c
index 0d545396..5714778d 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
asprintf (&arg, "TERM=%s", tt ? tt->ty_type : "unknown");
- if (strcmp (tt->ty_type, "dialup") == 0)
+ if (tt && strcmp (tt->ty_type, "dialup") == 0)
/* Dialup lines time out (which is login's default). */
execl (_PATH_LOGIN, "login", "-e", arg, 0);
else