mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 03:25:27 +03:00
tmpfiles: use correct error variable
This commit is contained in:
parent
15b45fac87
commit
a5df05ff20
@ -1805,7 +1805,7 @@ static int create_fifo(Item *i, const char *path) {
|
|||||||
|
|
||||||
fd = openat(pfd, bn, O_NOFOLLOW|O_CLOEXEC|O_PATH);
|
fd = openat(pfd, bn, O_NOFOLLOW|O_CLOEXEC|O_PATH);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return log_error_errno(fd, "Failed to openat(%s): %m", path);
|
return log_error_errno(errno, "Failed to openat(%s): %m", path);
|
||||||
|
|
||||||
return fd_set_perms(i, fd, i->path, NULL);
|
return fd_set_perms(i, fd, i->path, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user