udev: fix cg_unified() return code checking

Fixes fall-out from 8b3aa503c1.

Fixes: #2635
This commit is contained in:
Lennart Poettering 2016-02-16 14:03:47 +01:00
parent 3f51aec864
commit 6d2353394f
1 changed files with 1 additions and 1 deletions

View File

@ -1715,7 +1715,7 @@ int main(int argc, char *argv[]) {
by PID1. otherwise we are not guaranteed to have a dedicated cgroup */
r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup);
if (r < 0) {
if (r == -ENOENT || r == -ENOEXEC)
if (r == -ENOENT || r == -ENOMEDIUM)
log_debug_errno(r, "did not find dedicated cgroup: %m");
else
log_warning_errno(r, "failed to get cgroup: %m");