mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
tools: record: fix fallback os-release file handling
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b2cda3f4b7
commit
294298880d
1 changed files with 1 additions and 1 deletions
|
|
@ -1450,7 +1450,7 @@ print_system_header(struct record_context *ctx)
|
|||
|
||||
osrelease = fopen("/etc/os-release", "r");
|
||||
if (!osrelease)
|
||||
fopen("/usr/lib/os-release", "r");
|
||||
osrelease = fopen("/usr/lib/os-release", "r");
|
||||
if (osrelease) {
|
||||
char *distro = NULL, *version = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue