tmpfiles: use correct error variable

This commit is contained in:
Lennart Poettering 2018-08-06 15:46:01 +02:00
parent 15b45fac87
commit a5df05ff20
1 changed files with 1 additions and 1 deletions

View File

@ -1805,7 +1805,7 @@ static int create_fifo(Item *i, const char *path) {
fd = openat(pfd, bn, O_NOFOLLOW|O_CLOEXEC|O_PATH);
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);
}