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)
  • Loading branch information
YHNdnzj authored and bluca committed May 27, 2024
1 parent ae7a07b commit 632b493
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 @@ -2402,7 +2402,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 632b493

Please sign in to comment.