d743bb5
From 4dfc537efdff7b6297ff809a5c3f1a445f707c44 Mon Sep 17 00:00:00 2001
d743bb5
From: Yu Watanabe <watanabe.yu+github@gmail.com>
d743bb5
Date: Mon, 10 Apr 2017 20:22:18 +0900
d743bb5
Subject: [PATCH] tmpfiles: downgrade error message when operation is not
d743bb5
 supported (#5692)
d743bb5
d743bb5
Fixes #5607
d743bb5
(cherry picked from commit c258349f1a56b987fd91a5c136fd15536eec3890)
d743bb5
---
d743bb5
 src/tmpfiles/tmpfiles.c | 2 +-
d743bb5
 1 file changed, 1 insertion(+), 1 deletion(-)
d743bb5
d743bb5
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
d743bb5
index 7326597b8c..ed6a9adaa6 100644
d743bb5
--- a/src/tmpfiles/tmpfiles.c
d743bb5
+++ b/src/tmpfiles/tmpfiles.c
d743bb5
@@ -973,7 +973,7 @@ static int path_set_attribute(Item *item, const char *path) {
d743bb5
 
d743bb5
         r = chattr_fd(fd, f, item->attribute_mask);
d743bb5
         if (r < 0)
d743bb5
-                log_full_errno(r == -ENOTTY ? LOG_DEBUG : LOG_WARNING,
d743bb5
+                log_full_errno(r == -ENOTTY || r == -EOPNOTSUPP ? LOG_DEBUG : LOG_WARNING,
d743bb5
                                r,
d743bb5
                                "Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m",
d743bb5
                                path, item->attribute_value, item->attribute_mask);