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