s3: vfs: dirsort doesn't handle opendir of "." correctly.
authorJeremy Allison <jra@samba.org>
Fri, 27 Jan 2017 17:09:56 +0000 (09:09 -0800)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Feb 2017 08:36:24 +0000 (09:36 +0100)
commitbb453f5b558de3a9d601005ba002c766672859c6
tree7aa96f18e9a8a3acc600f2c7b72468ed394c10ae
parent946a4dec22c41ded23d80bb541fd88e1a7a94984
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

Back-port from commit e2f34116ab6328e2b872999dc7c4bcda69c03ab2.

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