summaryrefslogtreecommitdiff
path: root/source3/lib/util_path.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-01-17 11:33:18 -0800
committerJeremy Allison <jra@samba.org>2017-01-30 18:39:18 +0100
commit02599c39337c3049762a6b0bd6290577817ee5a5 (patch)
tree77b913ed86f2b108e83066564bbbb39449b9e3f6 /source3/lib/util_path.h
parent39678ed6af708fb6f2760bfb51051add11e3c498 (diff)
downloadsamba-02599c39337c3049762a6b0bd6290577817ee5a5.tar.gz
s3: lib: Add canonicalize_absolute_path().
Resolves any invalid path components (.) (..) in an absolute POSIX path. We will be re-using this in several places. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3/lib/util_path.h')
-rw-r--r--source3/lib/util_path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/util_path.h b/source3/lib/util_path.h
index 118a4bed524..16e27926084 100644
--- a/source3/lib/util_path.h
+++ b/source3/lib/util_path.h
@@ -27,5 +27,6 @@
char *lock_path(const char *name);
char *state_path(const char *name);
char *cache_path(const char *name);
+char *canonicalize_absolute_path(TALLOC_CTX *ctx, const char *abs_path);
#endif