summaryrefslogtreecommitdiffstats
path: root/src/sysupdate
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-01-25 11:28:46 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-01-25 11:28:46 +0100
commitd56afce6aadc62faa38752560849155d60156ff2 (patch)
treea52bf24165186328c4068a0c0b2587933a3356f7 /src/sysupdate
parentNEWS: update date and location (diff)
downloadsystemd-d56afce6aadc62faa38752560849155d60156ff2.tar.xz
systemd-d56afce6aadc62faa38752560849155d60156ff2.zip
sysupdate: fix errno check
Diffstat (limited to 'src/sysupdate')
-rw-r--r--src/sysupdate/sysupdate-resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysupdate/sysupdate-resource.c b/src/sysupdate/sysupdate-resource.c
index 04d425299d..e1e260addc 100644
--- a/src/sysupdate/sysupdate-resource.c
+++ b/src/sysupdate/sysupdate-resource.c
@@ -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");