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)
(cherry picked from commit 6ee5aa1)
  • Loading branch information
YHNdnzj authored and bluca committed May 28, 2024
1 parent f260bbf commit 7276730
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 @@ -2169,7 +2169,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 7276730

Please sign in to comment.