From f993c1d8970e3aae7de7dea6e1ae5c6d325865b2 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Mon, 25 Feb 2008 15:11:02 -0500 Subject: fix display of active vt when vt is disabled This fixes the Active device so it is set to "/dev/console" when not using VT. Without this patch, the syslog reports messages like: Active device: /dev/vt/3508388860 Which is obviously wrong if not using VT at all. --- src/ck-sysdeps-solaris.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ck-sysdeps-solaris.c b/src/ck-sysdeps-solaris.c index 3f71c6d..7e2a59f 100644 --- a/src/ck-sysdeps-solaris.c +++ b/src/ck-sysdeps-solaris.c @@ -471,8 +471,12 @@ ck_get_active_console_num (int console_fd, *num = active; } #else - res = ERROR; - errno = ENOTSUP; + /* + * If not using VT, not really an active number, but return 1, + * which maps to "/dev/console". + */ + ret = TRUE; + *num = 1; #endif return ret; -- cgit