s3: lib: Add canonicalize_absolute_path().
commit38e2f4bf1b14e2ea514437e91bd1e34466094698
authorJeremy Allison <jra@samba.org>
Tue, 17 Jan 2017 19:33:18 +0000 (17 11:33 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Feb 2017 10:42:22 +0000 (15 11:42 +0100)
tree957cbcc111a76bab96ecf39ab6adcadb23b66dde
parente3816bb04a761202747a73f282e193cb294c41e1
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>
(backported from commit 02599c39337c3049762a6b0bd6290577817ee5a5)
source3/lib/util_path.c
source3/lib/util_path.h