summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-08-05 20:33:48 +0200
committerKay Sievers <kay@vrfy.org>2015-08-05 20:33:48 +0200
commit8dbf626535136b6fe6e1cf7d4ff251b2f505087c (patch)
tree725339187b7e36e5fc611aa425b6b4a0f07584ac
parentb7cefda16a5a91f880e89c82c3c03515fd7d6dec (diff)
udev: uaccess - do not log error when device node disappears
https://github.com/systemd/systemd/issues/875
-rw-r--r--src/udev/udev-builtin-uaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-uaccess.c b/src/udev/udev-builtin-uaccess.c
index 99bb91ae57..43bab8af63 100644
--- a/src/udev/udev-builtin-uaccess.c
+++ b/src/udev/udev-builtin-uaccess.c
@@ -56,7 +56,7 @@ static int builtin_uaccess(struct udev_device *dev, int argc, char *argv[], bool
r = devnode_acl(path, true, false, 0, true, uid);
if (r < 0) {
- log_error_errno(r, "Failed to apply ACL on %s: %m", path);
+ log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, r, "Failed to apply ACL on %s: %m", path);
goto finish;
}
@@ -70,7 +70,7 @@ finish:
/* Better be safe than sorry and reset ACL */
k = devnode_acl(path, true, false, 0, false, 0);
if (k < 0) {
- log_error_errno(k, "Failed to apply ACL on %s: %m", path);
+ log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, k, "Failed to apply ACL on %s: %m", path);
if (r >= 0)
r = k;
}