mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
sysupdate: fix errno check
This commit is contained in:
parent
903dd65b5e
commit
d56afce6aa
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user