More callers are coming.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
return false;
}
+
+char *path_to_strv(TALLOC_CTX *mem_ctx, const char *path)
+{
+ char *result = talloc_strdup(mem_ctx, path);
+
+ if (result == NULL) {
+ return NULL;
+ }
+ string_replace(result, '/', '\0');
+ return result;
+}
size_t parent_len,
const char *subdir,
const char **_relative);
+char *path_to_strv(TALLOC_CTX *mem_ctx, const char *path);
#endif
return status;
}
-static char *path_to_strv(TALLOC_CTX *mem_ctx, const char *path)
-{
- char *result = talloc_strdup(mem_ctx, path);
-
- if (result == NULL) {
- return NULL;
- }
- string_replace(result, '/', '\0');
- return result;
-}
-
NTSTATUS readlink_talloc(
TALLOC_CTX *mem_ctx,
struct files_struct *dirfsp,