diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/mkdir.c | 2 | ||||
-rw-r--r-- | src/shared/mkdir.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/mkdir.c b/src/shared/mkdir.c index b35551eb02..ba083d6d67 100644 --- a/src/shared/mkdir.c +++ b/src/shared/mkdir.c @@ -58,7 +58,7 @@ int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid) { return mkdir_safe_internal(path, mode, uid, gid, mkdir); } -static int is_dir(const char* path) { +int is_dir(const char* path) { struct stat st; if (stat(path, &st) < 0) diff --git a/src/shared/mkdir.h b/src/shared/mkdir.h index eb73902fc2..f1bf4c0a68 100644 --- a/src/shared/mkdir.h +++ b/src/shared/mkdir.h @@ -41,3 +41,4 @@ typedef int (*mkdir_func_t)(const char *pathname, mode_t mode); int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir); int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir); int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir); +int is_dir(const char *path); |