Skip to content

Commit 10e36db

Browse files
YHNdnzjbluca
authored andcommitted
tmpfiles: don't compare errno with negative value
Follow-up for 677430b (cherry picked from commit d8f5a31) (cherry picked from commit 632b493)
1 parent e2fe7d8 commit 10e36db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmpfiles/tmpfiles.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ static int item_do(
23242324

23252325
de_fd = openat(fd, de->d_name, O_NOFOLLOW|O_CLOEXEC|O_PATH);
23262326
if (de_fd < 0) {
2327-
if (errno != -ENOENT)
2327+
if (errno != ENOENT)
23282328
q = log_error_errno(errno, "Failed to open file '%s': %m", de->d_name);
23292329
} else {
23302330
_cleanup_free_ char *de_path = NULL;

0 commit comments

Comments
 (0)