Skip to content

Commit bf4d97f

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) (cherry picked from commit 10e36db) (cherry picked from commit 6ee5aa1)
1 parent 69d1746 commit bf4d97f

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
@@ -2169,7 +2169,7 @@ static int item_do(
21692169

21702170
de_fd = openat(fd, de->d_name, O_NOFOLLOW|O_CLOEXEC|O_PATH);
21712171
if (de_fd < 0) {
2172-
if (errno != -ENOENT)
2172+
if (errno != ENOENT)
21732173
q = log_error_errno(errno, "Failed to open file '%s': %m", de->d_name);
21742174
} else {
21752175
_cleanup_free_ char *de_path = NULL;

0 commit comments

Comments
 (0)