tmpfiles: downgrade error message when operation is not supported (#5692)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Apr 2017 11:22:18 +0000 (20:22 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Apr 2017 11:22:18 +0000 (13:22 +0200)
Fixes #5607

src/tmpfiles/tmpfiles.c

index 7326597..ed6a9ad 100644 (file)
@@ -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);