summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/gen/ttyname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libc/port/gen/ttyname.c b/usr/src/lib/libc/port/gen/ttyname.c
index 24f2725199..01a4ea8cb7 100644
--- a/usr/src/lib/libc/port/gen/ttyname.c
+++ b/usr/src/lib/libc/port/gen/ttyname.c
@@ -124,6 +124,7 @@ static const entry_t dev_dir =
static const entry_t def_srch_dirs[] = { /* default search list */
{ "/dev/pts", MATCH_ALL },
+ { "/dev/vt", MATCH_ALL },
{ "/dev/term", MATCH_ALL },
{ "/dev/zcons", MATCH_ALL },
{ NULL, 0 }
@@ -537,6 +538,9 @@ srch_dir(const entry_t path, /* current path */
if (stat64(file_name, &tsb) < 0)
continue;
+ if (strcmp(file_name, "/dev/vt/active") == 0)
+ continue;
+
/*
* skip "/dev/syscon" because it may be an invalid link after
* single user mode.