From: Yu Watanabe Date: Mon, 10 Apr 2017 11:22:18 +0000 (+0900) Subject: tmpfiles: downgrade error message when operation is not supported (#5692) X-Git-Tag: v234~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c258349f1a56b987fd91a5c136fd15536eec3890;p=thirdparty%2Fsystemd.git tmpfiles: downgrade error message when operation is not supported (#5692) Fixes #5607 --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 7326597b8c3..ed6a9adaa61 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -973,7 +973,7 @@ static int path_set_attribute(Item *item, const char *path) { r = chattr_fd(fd, f, item->attribute_mask); if (r < 0) - log_full_errno(r == -ENOTTY ? LOG_DEBUG : LOG_WARNING, + log_full_errno(r == -ENOTTY || r == -EOPNOTSUPP ? LOG_DEBUG : LOG_WARNING, r, "Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m", path, item->attribute_value, item->attribute_mask);