logind: don't print error if devices vanish during ACL-init

If a device is unplugged while we initialize it, we will get ENOENT for
ACL-init (and related stuff). We currently print errors then, which is
misleading. Print a debug-message early and continue.
This commit is contained in:
David Herrmann
2014-04-02 16:25:40 +02:00
parent ca2bb1606a
commit 8016b90484
+3 -1
View File
@@ -279,7 +279,9 @@ int devnode_acl_all(struct udev *udev,
log_debug("Fixing up ACLs at %s for seat %s", n, seat);
k = devnode_acl(n, flush, del, old_uid, add, new_uid);
if (k < 0)
if (k == -ENOENT)
log_debug("Device %s disappeared while setting ACLs", n);
else if (k < 0)
r = k;
}