commit | a5df05ff202c08728bca18d7de7d5ef013d5a26a | [log] [tgz] |
---|---|---|
author | Lennart Poettering <lennart@poettering.net> | Mon Aug 06 15:46:01 2018 +0200 |
committer | Lennart Poettering <lennart@poettering.net> | Wed Aug 08 11:59:39 2018 +0200 |
tree | 04bf07ed61d4af220954d732f703168aaee94ec0 | |
parent | 15b45fac8728c6d0b538f047c6966f570c325bbb [diff] [blame] |
tmpfiles: use correct error variable
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index ed7022f..7af1359 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c
@@ -1805,7 +1805,7 @@ 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); }