diff options
author | Daniel Mack <github@zonque.org> | 2015-07-23 09:12:43 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-07-23 09:12:43 +0200 |
commit | e25aa3453b01820b56f3d4844535607677c3937a (patch) | |
tree | dc8eb7f00e428d03f4a378b9339314e0944159ee | |
parent | 33b63dd732b8ab04fb40b8d1f7d154ab4ba39fed (diff) | |
parent | ad75a97f7d86ddbc1b8521ae084862013c1713b0 (diff) |
Merge pull request #663 from poettering/tmpfiles-chattr-enotty
tmpfiles: downgrade errors when a file system does not support file a…
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 42f757c4b7..271984b5a8 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -955,9 +955,10 @@ static int path_set_attribute(Item *item, const char *path) { r = chattr_fd(fd, f, item->attribute_mask); if (r < 0) - return log_error_errno(r, - "Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m", - path, item->attribute_value, item->attribute_mask); + log_full_errno(r == -ENOTTY ? 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); return 0; } |