shared: clean up mkdir.h/label.h situation

Previously the mkdir_label() family of calls was implemented in
src/shared/mkdir-label.c but its functions partly declared ins
src/shared/label.h and partly in src/basic/mkdir.h (!!). That's weird
(and wrong).

Let's clean this up, and add a proper mkdir-label.h matching the .c
file.
This commit is contained in:
Lennart Poettering
2021-11-16 17:03:28 +01:00
parent ed304a5d73
commit 35cd0ba516
58 changed files with 80 additions and 77 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
#include "alloc-util.h"
#include "dropin.h"
#include "generator.h"
#include "mkdir.h"
#include "mkdir-label.h"
#include "parse-util.h"
#include "path-util.h"
#include "proc-cmdline.h"
@@ -138,7 +138,7 @@ static int generate_wants_symlinks(void) {
if (!f)
return log_oom();
mkdir_parents_label(p, 0755);
(void) mkdir_parents_label(p, 0755);
if (symlink(f, p) < 0)
r = log_error_errno(errno,