]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 7326597b8c35eba060a19fc2bab6f07bcfebd8de..ed6a9adaa614a36ff1a4be26c13df2c5c19a3868 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);