mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 04:20:05 +00:00
trivial: Fix a few new FALSE/NULL confusions
This commit is contained in:
parent
8fe7cddc74
commit
ddb3e20d29
@ -397,7 +397,7 @@ fu_common_firmware_builder (GBytes *bytes,
|
|||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_NOT_SUPPORTED,
|
FWUPD_ERROR_NOT_SUPPORTED,
|
||||||
"missing executable bwrap in PATH");
|
"missing executable bwrap in PATH");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test if CONFIG_USER_NS is valid */
|
/* test if CONFIG_USER_NS is valid */
|
||||||
@ -406,18 +406,18 @@ fu_common_firmware_builder (GBytes *bytes,
|
|||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_NOT_SUPPORTED,
|
FWUPD_ERROR_NOT_SUPPORTED,
|
||||||
"missing CONFIG_USER_NS in kernel");
|
"missing CONFIG_USER_NS in kernel");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (g_file_test ("/proc/sys/kernel/unprivileged_userns_clone", G_FILE_TEST_EXISTS)) {
|
if (g_file_test ("/proc/sys/kernel/unprivileged_userns_clone", G_FILE_TEST_EXISTS)) {
|
||||||
g_autofree gchar *clone = NULL;
|
g_autofree gchar *clone = NULL;
|
||||||
if (!g_file_get_contents ("/proc/sys/kernel/unprivileged_userns_clone", &clone, NULL, error))
|
if (!g_file_get_contents ("/proc/sys/kernel/unprivileged_userns_clone", &clone, NULL, error))
|
||||||
return FALSE;
|
return NULL;
|
||||||
if (g_ascii_strtoll (clone, NULL, 10) == 0) {
|
if (g_ascii_strtoll (clone, NULL, 10) == 0) {
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_NOT_SUPPORTED,
|
FWUPD_ERROR_NOT_SUPPORTED,
|
||||||
"unprivileged user namespace clones disabled by distro");
|
"unprivileged user namespace clones disabled by distro");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user