projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b45fa
)
tmpfiles: use correct error variable
author
Lennart Poettering
<lennart@poettering.net>
Mon, 6 Aug 2018 13:46:01 +0000
(15:46 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 8 Aug 2018 09:59:39 +0000
(11:59 +0200)
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index
ed7022f
..
7af1359
100644
(file)
--- 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);
}