summaryrefslogtreecommitdiffstats
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-10 12:16:31 +0200
committerMike Yuan <me@yhndnzj.com>2024-05-10 12:50:05 +0200
commitd8f5a310227e7c74548b7f6ca9aafd39af6a621f (patch)
tree519ea501fdcf123c4f417bfa1a0acdfb0d25fa55 /src/tmpfiles
parenttmpfiles: clean up hardlinks_vulnerable a bit (diff)
downloadsystemd-d8f5a310227e7c74548b7f6ca9aafd39af6a621f.tar.xz
systemd-d8f5a310227e7c74548b7f6ca9aafd39af6a621f.zip
tmpfiles: don't compare errno with negative value
Follow-up for 677430b3c7fcd1b352eb66f19b8746741459b91a
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 010eca0298..8d87f8306a 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -2547,7 +2547,7 @@ static int item_do(
de_fd = openat(fd, de->d_name, O_NOFOLLOW|O_CLOEXEC|O_PATH);
if (de_fd < 0) {
- if (errno != -ENOENT)
+ if (errno != ENOENT)
q = log_error_errno(errno, "Failed to open file '%s': %m", de->d_name);
} else {
_cleanup_free_ char *de_path = NULL;