]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup: when comparing agent paths, use path_equal()
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Sep 2015 16:27:19 +0000 (18:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2015 07:07:31 +0000 (09:07 +0200)
After all a path is a path is a path and we should use path_equal() to
comapre those.

src/basic/cgroup-util.c

index 8299f6ffd53be3a5ff664f56be3f0e34c7761e17..3ef96b238e6fe45e3e6bf112e8fe8fb50f14f87e 100644 (file)
@@ -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);