mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-13 12:58:20 +03:00
tmpfiles: don't compare errno with negative value
Follow-up for 677430b3c7fcd1b352eb66f19b8746741459b91a (cherry picked from commit d8f5a310227e7c74548b7f6ca9aafd39af6a621f) (cherry picked from commit 632b4934a0a0d0c048d94a3baab4668b58577a03) (cherry picked from commit 10e36dbd66eb96e8b1bc8e71b48c8b2a8c7635c5)
This commit is contained in:
parent
8cc1fe9f4b
commit
6ee5aa1062
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user