From a5df05ff202c08728bca18d7de7d5ef013d5a26a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Aug 2018 15:46:01 +0200 Subject: [PATCH] tmpfiles: use correct error variable --- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index ed7022fbb4b..7af1359c92f 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -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); } -- 2.47.3