tmpfiles: use correct error variable

This commit is contained in:
Lennart Poettering
2018-08-08 11:59:39 +02:00
parent 15b45fac87
commit a5df05ff20
+1 -1
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);
}