mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user