summaryrefslogtreecommitdiff
path: root/src/login/logind-acl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-18 14:01:13 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-18 21:45:27 -0400
commitf7a5bb2842037fa27dbc99d92c3fee7fe1bbbc2a (patch)
treee56e66388ea78ea1ee96ae3cce3318c4abc1a423 /src/login/logind-acl.c
parent6b9732b2bf0499c5e4ea8a9d4f6051d98033f680 (diff)
Small modernizations
Diffstat (limited to 'src/login/logind-acl.c')
-rw-r--r--src/login/logind-acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c
index af7c352ce5..b76e16d906 100644
--- a/src/login/logind-acl.c
+++ b/src/login/logind-acl.c
@@ -284,7 +284,7 @@ int devnode_acl_all(struct udev *udev,
k = devnode_acl(n, flush, del, old_uid, add, new_uid);
if (k == -ENOENT)
log_debug("Device %s disappeared while setting ACLs", n);
- else if (k < 0)
+ else if (k < 0 && r == 0)
r = k;
}