s3: lib: Add canonicalize_absolute_path().
authorJeremy Allison <jra@samba.org>
Tue, 17 Jan 2017 19:33:18 +0000 (11:33 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 30 Jan 2017 17:39:18 +0000 (18:39 +0100)
commit02599c39337c3049762a6b0bd6290577817ee5a5
tree77b913ed86f2b108e83066564bbbb39449b9e3f6
parent39678ed6af708fb6f2760bfb51051add11e3c498
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>
source3/lib/util_path.c
source3/lib/util_path.h