]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: fix errno check
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 25 Jan 2023 10:28:46 +0000 (11:28 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 25 Jan 2023 10:28:46 +0000 (11:28 +0100)
src/sysupdate/sysupdate-resource.c

index 04d425299d2c5ee6983524f4ffd8902fdbbc4ab7..e1e260addcca52f85a67505c86ace72c43cc4076 100644 (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");