diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-08-06 20:19:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-08-08 11:59:39 +0200 |
commit | c3e03778d64de6294d5030c822774c67ce416fe8 (patch) | |
tree | ddc3ef5831305c5dfc929240e4a2556a2cab19d4 /src/tmpfiles/tmpfiles.c | |
parent | btrfs-util: unfuck tmpfiles' subvol creation (diff) | |
download | systemd-c3e03778d64de6294d5030c822774c67ce416fe8.tar.xz systemd-c3e03778d64de6294d5030c822774c67ce416fe8.zip |
tmpfiles: return correct error variable after fd_reopen()
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 7b98e66cfb..730f5bbc6d 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1259,7 +1259,7 @@ static int fd_set_attribute(Item *item, int fd, const char *path, const struct s procfs_fd = fd_reopen(fd, O_RDONLY|O_CLOEXEC|O_NOATIME); if (procfs_fd < 0) - return log_error_errno(errno, "Failed to re-open '%s': %m", path); + return log_error_errno(procfs_fd, "Failed to re-open '%s': %m", path); r = chattr_fd(procfs_fd, f, item->attribute_mask); if (r < 0) |