s3: vfs: dirsort doesn't handle opendir of "." correctly.
authorJeremy Allison <jra@samba.org>
Thu, 5 Jan 2017 20:38:07 +0000 (12:38 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 9 Jan 2017 18:31:19 +0000 (19:31 +0100)
commite2f34116ab6328e2b872999dc7c4bcda69c03ab2
tree1faa185322b21d923e2ff70dfa6d03aa9e10da97
parentb9e76cc8e1690e2a5b9608e9ead8aa45a5349485
s3: vfs: dirsort doesn't handle opendir of "." correctly.

Needs to store $cwd path for correct sorting.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12499

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_dirsort.c