Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:A
blog
libconsole-Really-allow-to-use-dev-console-as-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libconsole-Really-allow-to-use-dev-console-as-a-fall.patch of Package blog
From: Petr Mladek <pmladek@suse.com> Date: Mon, 11 Dec 2017 16:40:39 +0100 Subject: libconsole: Really allow to use /dev/console as a fallback in showconsole Git-commit: 19329e59e442c81d270028cbc945fe83a9732327 References: bsc#1071568 Upstream: merged consalloc() always returns an error when it is called from showconsole (with io = 0). As a result, /dev/console is ignored because it is not assigned to the global "cons" pointer in getconsoles(). consalloc() should return success (1) when the console is added to the list and the io-related operations are skipped. Signed-off-by: Petr Mladek <pmladek@suse.com> --- libconsole/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libconsole/console.c b/libconsole/console.c index 2f6e0b1d56d9..600e22608630 100644 --- a/libconsole/console.c +++ b/libconsole/console.c @@ -559,7 +559,7 @@ static int consalloc(struct console **cons, char *name, const int cflags, const insert(&newc->node, head); if (!io) - return 0; + return 1; if ((newc->fd = open(newc->tty, O_WRONLY|O_NONBLOCK|O_NOCTTY)) < 0) { if (errno == EACCES) -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor