mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +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);
|
r = stat("/run/systemd/volatile-root", &orig_root_stats);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
if (errno == -ENOENT) /* volatile-root not found */
|
if (errno == ENOENT) /* volatile-root not found */
|
||||||
r = get_block_device_harder("/usr/", &d);
|
r = get_block_device_harder("/usr/", &d);
|
||||||
else
|
else
|
||||||
return log_error_errno(r, "Failed to stat /run/systemd/volatile-root: %m");
|
return log_error_errno(r, "Failed to stat /run/systemd/volatile-root: %m");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user