]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: lib: Fix two old, old bugs in set_conn_connectpath(), now in canonicalize_absolut...
authorJeremy Allison <jra@samba.org>
Thu, 19 Jan 2017 23:18:41 +0000 (15:18 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Feb 2017 10:42:22 +0000 (11:42 +0100)
commit40f3664bfb86053d3550809f883793db54116b23
tree2b6226b319f4b9f4874315fcebb60943298a7b16
parent38e2f4bf1b14e2ea514437e91bd1e34466094698
s3: lib: Fix two old, old bugs in set_conn_connectpath(), now in canonicalize_absolute_path().

Canonicalizing a path of /foo/bar/../baz would return /foo/barbaz
as moving forward 3 characters would delete the / character.

Canonicalizing /foo/.. would end up as '\0'.

Test to follow.

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 82979afc46cc5e466bdd999a94080e7a5df95518)
source3/lib/util_path.c