CVE-2023-34968: lib: Move subdir_of() to source3/lib/util_path.c
[samba.git] / source3 / lib / util_path.h
index 3e7d04de5507d7324e94985f1630e6d02a50d500..0ea508bf5bbc854ea4e63007bbbd212e3b885355 100644 (file)
@@ -31,5 +31,9 @@ char *lock_path(TALLOC_CTX *mem_ctx, const char *name);
 char *state_path(TALLOC_CTX *mem_ctx, const char *name);
 char *cache_path(TALLOC_CTX *mem_ctx, const char *name);
 char *canonicalize_absolute_path(TALLOC_CTX *ctx, const char *abs_path);
+bool subdir_of(const char *parent,
+              size_t parent_len,
+              const char *subdir,
+              const char **_relative);
 
 #endif