Hi,
OpenSolaris and Nevada use different major number for VT devices. If you
check the wc line in /etc/name_to_major, OpenSolaris is "wc 16", Nevada
is "wc 15".
In stat2prco() of src/ck-sysdeps-solaris.c, we only check 15.
180 if (tty_maj == 15) {
181 snprintf (P->tty_text, sizeof P->tty_text, "/dev/vt/%u",
tty _min);
182 }
As Aaron suggested, the major version of VT devices should be identified at run
time rather than hard code as
"15".
For more information, please refer to bug report
http://defect.opensolaris.org/bz/show_bug.cgi?id=12322
Thanks,
Halton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConsoleKit-07-sol-vt-major.diff
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20091103/80647e57/attachment.bin>