Skip to content

Commit

Permalink
tmpfiles: don't compare errno with negative value
Browse files Browse the repository at this point in the history
Follow-up for 677430b

(cherry picked from commit d8f5a31)
(cherry picked from commit 632b493)
(cherry picked from commit 10e36db)
  • Loading branch information
YHNdnzj authored and bluca committed May 28, 2024
1 parent 8cc1fe9 commit 6ee5aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmpfiles/tmpfiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,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;
Expand Down

0 comments on commit 6ee5aa1

Please sign in to comment.