diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-25 20:04:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-08 21:40:44 +0200 |
commit | db9a42545adaa54d789760f842702816625cc384 (patch) | |
tree | 1166dec405939b1fbcc2fc17e707651fbc0ab5f8 /src/tmpfiles | |
parent | 8cbb7d8783a5a66f2ceb702e59dd7304ba578a6b (diff) | |
download | systemd-db9a42545adaa54d789760f842702816625cc384.tar.gz systemd-db9a42545adaa54d789760f842702816625cc384.tar.bz2 systemd-db9a42545adaa54d789760f842702816625cc384.zip |
chattr: optionally, return the old flags when updating them
Diffstat (limited to 'src/tmpfiles')
-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 e994be66df..1b3cb5fbd3 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1232,7 +1232,7 @@ static int fd_set_attribute(Item *item, int fd, const char *path, const struct s if (procfs_fd < 0) return log_error_errno(procfs_fd, "Failed to re-open '%s': %m", path); - r = chattr_fd(procfs_fd, f, item->attribute_mask); + r = chattr_fd(procfs_fd, f, item->attribute_mask, NULL); if (r < 0) log_full_errno(IN_SET(r, -ENOTTY, -EOPNOTSUPP) ? LOG_DEBUG : LOG_WARNING, r, |