diff options
Diffstat (limited to 'src/shared/cgroup-label.c')
-rw-r--r-- | src/shared/cgroup-label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/cgroup-label.c b/src/shared/cgroup-label.c index f132d71e21..06e3c16260 100644 --- a/src/shared/cgroup-label.c +++ b/src/shared/cgroup-label.c @@ -43,7 +43,8 @@ int cg_create(const char *controller, const char *path) { assert(controller); assert(path); - if ((r = cg_get_path(controller, path, NULL, &fs)) < 0) + r = cg_get_path_and_check(controller, path, NULL, &fs); + if (r < 0) return r; r = mkdir_parents(fs, 0755); |