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.
This commit is contained in:
Lennart Poettering 2015-09-03 18:27:19 +02:00
parent d7e46e01ac
commit b8725df8b3
1 changed files with 1 additions and 1 deletions

View 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);