mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 18:55:09 +03:00
tmpfiles: return correct error variable after fd_reopen()
This commit is contained in:
parent
2e6e616887
commit
c3e03778d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user