mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03: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:
parent
ca2bb1606a
commit
8016b90484
Notes:
Lennart Poettering
2014-05-24 11:33:50 +08:00
Backport: bugfix
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user