From a9f92dcb5eea73a6e7b12a19d949881d25d3587e Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 5 May 2022 13:29:08 -0500 Subject: [PATCH] trivial: libfwupd: don't try to read /etc/os-release on windows --- libfwupd/fwupd-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfwupd/fwupd-common.c b/libfwupd/fwupd-common.c index 825846be6..a7bb7bf3d 100644 --- a/libfwupd/fwupd-common.c +++ b/libfwupd/fwupd-common.c @@ -162,6 +162,7 @@ fwupd_get_os_release(GError **error) g_return_val_if_fail(error == NULL || *error == NULL, NULL); +#ifndef _WIN32 /* find the correct file */ if (sysconfdir != NULL) g_ptr_array_add(paths, g_build_filename(sysconfdir, "os-release", NULL)); @@ -175,6 +176,7 @@ fwupd_get_os_release(GError **error) break; } } +#endif hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); if (filename == NULL) {