summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/mkdir.c2
-rw-r--r--src/shared/mkdir.h2
-rw-r--r--src/udev/udev-rules.c2
-rw-r--r--src/udev/udevd.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/mkdir.c b/src/shared/mkdir.c
index 73a3c4576f..20702afa15 100644
--- a/src/shared/mkdir.c
+++ b/src/shared/mkdir.c
@@ -124,6 +124,6 @@ int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_fu
return 0;
}
-int mkdir_p(const char *path, mode_t mode) {
+int udev_mkdir_p(const char *path, mode_t mode) {
return mkdir_p_internal(NULL, path, mode, mkdir);
}
diff --git a/src/shared/mkdir.h b/src/shared/mkdir.h
index 7d37c89230..bb1d01bb5e 100644
--- a/src/shared/mkdir.h
+++ b/src/shared/mkdir.h
@@ -21,7 +21,7 @@
#include <sys/types.h>
int mkdir_parents(const char *path, mode_t mode);
-int mkdir_p(const char *path, mode_t mode);
+int udev_mkdir_p(const char *path, mode_t mode);
/* mandatory access control(MAC) versions */
int mkdir_parents_label(const char *path, mode_t mode);
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 3a96c8a0e5..c5e85faaaf 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -2682,7 +2682,7 @@ int udev_rules_apply_static_dev_perms(struct udev_rules *rules) {
_cleanup_free_ char *unescaped_filename = NULL;
strscpyl(tags_dir, sizeof(tags_dir), UDEV_ROOT_RUN "/udev/static_node-tags/", *t, "/", NULL);
- r = mkdir_p(tags_dir, 0755);
+ r = udev_mkdir_p(tags_dir, 0755);
if (r < 0)
return log_error_errno(r, "failed to create %s: %m", tags_dir);
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index f4076b1357..e2cd9050e5 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1301,7 +1301,7 @@ int main(int argc, char *argv[]) {
IN_DELETE | IN_MOVE | IN_CLOSE_WRITE);
if (access(UDEV_ROOT_RUN "/udev/rules.d", F_OK) < 0) {
- mkdir_p(UDEV_ROOT_RUN "/udev/rules.d", 0755);
+ udev_mkdir_p(UDEV_ROOT_RUN "/udev/rules.d", 0755);
}
inotify_add_watch(fd_inotify, UDEV_ROOT_RUN "/udev/rules.d",
IN_DELETE | IN_MOVE | IN_CLOSE_WRITE);