s3: lib: Add canonicalize_absolute_path().
commit747da4452df657d3d5f501bb7620377764736fb8
authorJeremy Allison <jra@samba.org>
Tue, 17 Jan 2017 19:33:18 +0000 (17 11:33 -0800)
committerStefan Metzmacher <metze@samba.org>
Mon, 13 Feb 2017 23:24:26 +0000 (14 00:24 +0100)
tree1d357d7fffabb4e78e6635fad4ee246bf614cc96
parent10e63a13bb508b05bc9bf7e5699e719cbba1ed56
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>
(cherry picked from commit 02599c39337c3049762a6b0bd6290577817ee5a5)
source3/lib/util_path.c
source3/lib/util_path.h