Merge pull request #663 from poettering/tmpfiles-chattr-enotty
tmpfiles: downgrade errors when a file system does not support file a…
This commit is contained in:
commit
e25aa3453b
|
@ -955,9 +955,10 @@ static int path_set_attribute(Item *item, const char *path) {
|
||||||
|
|
||||||
r = chattr_fd(fd, f, item->attribute_mask);
|
r = chattr_fd(fd, f, item->attribute_mask);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_error_errno(r,
|
log_full_errno(r == -ENOTTY ? LOG_DEBUG : LOG_WARNING,
|
||||||
"Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m",
|
r,
|
||||||
path, item->attribute_value, item->attribute_mask);
|
"Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m",
|
||||||
|
path, item->attribute_value, item->attribute_mask);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue