Merge pull request #26192 from mrc0mmand/fix-errno-check

sysupdate: fix errno check
This commit is contained in:
Luca Boccassi
2023-01-25 19:48:23 +00:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ int resource_resolve_path(
r = stat("/run/systemd/volatile-root", &orig_root_stats);
if (r < 0) {
if (errno == -ENOENT) /* volatile-root not found */
if (errno == ENOENT) /* volatile-root not found */
r = get_block_device_harder("/usr/", &d);
else
return log_error_errno(r, "Failed to stat /run/systemd/volatile-root: %m");