s3: smbd: Ensure dirpath is set to ".", not "\0" so it is always a valid path.
commitba9d293ccf524b12c4f03cdb6a6acab3e46bc696
authorJeremy Allison <jra@samba.org>
Wed, 22 Aug 2018 20:37:04 +0000 (22 13:37 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 11 Sep 2018 20:45:10 +0000 (11 22:45 +0200)
tree3b839aed091c16451f1a5f47af41318e72b76a58
parentde7541059360b597c3d2ea383b0eb2fc2f7018d5
s3: smbd: Ensure dirpath is set to ".", not "\0" so it is always a valid path.

Cleanup of the internals of unix_convert().

Ensure check_parent_exists() returns this in the non-optimization
case. Ensure unix_convert() initializes dirpath to ".".

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/filename.c