tree-wide: port things dirname_malloc() → path_extract_directory()

This commit is contained in:
Lennart Poettering
2022-08-23 15:10:15 +02:00
parent 0f74ca8668
commit 45519d13a4
20 changed files with 123 additions and 125 deletions
+3 -3
View File
@@ -3104,9 +3104,9 @@ static int setup_credentials_internal(
/* If we do not have our own mount put used the plain directory fallback, then we need to
* open access to the top-level credential directory and the per-service directory now */
parent = dirname_malloc(final);
if (!parent)
return -ENOMEM;
r = path_extract_directory(final, &parent);
if (r < 0)
return r;
if (chmod(parent, 0755) < 0)
return -errno;
}