diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-04-02 16:20:13 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-04-02 16:25:40 +0200 |
commit | 8016b904849a2d2bd8b0171ed8493db5524b5ff7 (patch) | |
tree | 164b8f66ef8d331ae66d25c47887c37e6a950590 /src | |
parent | ca2bb1606a170ce2e45de1345b0119bd220f4f0d (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/login/logind-acl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c index dc86f0f1a2..4bbeb64e8b 100644 --- a/src/login/logind-acl.c +++ b/src/login/logind-acl.c @@ -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; } |