FreeBSD Bugzilla – Attachment 236101 Details for
Bug 221452
sysutils/consolekit2: session's active state lost when switching between virtual terminals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
parse number from devname differently..
patch-src_ck-sysdeps-freebsd.c (text/plain), 808 bytes, created by
Jesper Schmitz Mouridsen
on 2022-08-24 23:12:28 UTC
(
hide
)
Description:
parse number from devname differently..
Filename:
MIME Type:
Creator:
Jesper Schmitz Mouridsen
Created:
2022-08-24 23:12:28 UTC
Size:
808 bytes
patch
obsolete
>--- src/ck-sysdeps-freebsd.c.orig 2021-06-03 10:22:08 UTC >+++ src/ck-sysdeps-freebsd.c >@@ -412,7 +412,7 @@ ck_get_console_num_from_device (const char *device, > guint *num) > { > guint n; >- char c; >+ char c[2]; > gboolean ret; > > n = 0; >@@ -422,11 +422,7 @@ ck_get_console_num_from_device (const char *device, > return FALSE; > } > >- if (sscanf (device, "/dev/ttyv%c", &c) == 1) { >- if (c < 58) >- n = c - 48; >- else >- n = c - 'a' + 10; >+ if (sscanf (device, "/dev/ttyv%d", &n) >0) { > /* The VT number is always one more than the device number. */ > n++; > ret = TRUE;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 221452
:
229140
|
236101
|
236106