mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 15:58:20 +02:00
main: fix inverted conditional in active console reading code
We were failing when read succeeded, not when it failed, so we were always reverting to fallback.
This commit is contained in:
parent
f15abb5d95
commit
990f332b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -1892,7 +1892,7 @@ add_consoles_from_file (state_t *state,
|
|||
}
|
||||
|
||||
ply_trace ("reading file");
|
||||
if (read (fd, contents, sizeof (contents)))
|
||||
if (read (fd, contents, sizeof (contents)) <= 0)
|
||||
{
|
||||
ply_trace ("couldn't read it: %m");
|
||||
close (fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue