summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-03 18:27:19 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-04 09:07:31 +0200
commitb8725df8b338b13405e430d037f0aac7872ce3d5 (patch)
tree1cd88ad038c0d9d6bf9fec36dd6786a7b99d6271
parentd7e46e01aca53017cffb659115665be621264b8f (diff)
cgroup: when comparing agent paths, use path_equal()
After all a path is a path is a path and we should use path_equal() to comapre those.
-rw-r--r--src/basic/cgroup-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 8299f6ffd5..3ef96b238e 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -899,7 +899,7 @@ int cg_install_release_agent(const char *controller, const char *agent) {
r = write_string_file(fs, agent, 0);
if (r < 0)
return r;
- } else if (!streq(sc, agent))
+ } else if (!path_equal(sc, agent))
return -EEXIST;
fs = mfree(fs);