tmpfiles: don't compare errno with negative value

Follow-up for 677430b3c7
This commit is contained in:
Mike Yuan
2024-05-10 18:50:05 +08:00
parent 570c940d42
commit d8f5a31022
+1 -1
View File
@@ -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;