diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-22 12:34:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-08-23 15:10:15 +0200 |
commit | 45519d13a4f2a3c3585e672595762ca621abe65e (patch) | |
tree | 8680b032714ce1b7f823049d1e71b6ecb4b7e308 /src/test/test-bpf-devices.c | |
parent | Merge pull request #24412 from keszybz/man-similarly (diff) | |
download | systemd-45519d13a4f2a3c3585e672595762ca621abe65e.tar.xz systemd-45519d13a4f2a3c3585e672595762ca621abe65e.zip |
tree-wide: port things dirname_malloc() → path_extract_directory()
Diffstat (limited to 'src/test/test-bpf-devices.c')
-rw-r--r-- | src/test/test-bpf-devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-bpf-devices.c b/src/test/test-bpf-devices.c index 587591cf04..e175483734 100644 --- a/src/test/test-bpf-devices.c +++ b/src/test/test-bpf-devices.c @@ -295,7 +295,7 @@ int main(int argc, char *argv[]) { test_policy_empty(false, cgroup, &prog); test_policy_empty(true, cgroup, &prog); - assert_se(parent = dirname_malloc(cgroup)); + assert_se(path_extract_directory(cgroup, &parent) >= 0); assert_se(cg_mask_supported(&supported) >= 0); r = cg_attach_everywhere(supported, parent, 0, NULL, NULL); |