s3:smb2_find: Return that timestamps do not exist as directories
commit5f3fa215d9f88aa83f2f0daa5e1e540ffc6294a3
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Thu, 29 Aug 2013 17:36:00 +0000 (29 19:36 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Sep 2013 09:38:35 +0000 (16 11:38 +0200)
tree185fb72d6ccbffffe5cfb4a0fc365558c3dae3da
parent71e2a9ae3b108d24d1f7dc521c4035a4b9f93900
s3:smb2_find: Return that timestamps do not exist as directories

When a Windows client receives a large directory listing while
querying snapshots, it sends a find request asking for the
timestamp as a directory. A Windows server returns NO_SUCH_FILE,
so make sure Samba returns the same. Otherwise the client will
get confused and display timestamps in the 'previous versions' dialog.

Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 10 22:38:51 CEST 2013 on sn-devel-104

(cherry picked from commit c8c0632c871e838fc4465b2a69b4e059e9a126c0)

Fix bug #10137 - shadow_copy2 does not display previous versions correctly over
SMB2.

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Sep 16 11:38:36 CEST 2013 on sn-devel-104
source3/include/smb.h
source3/modules/vfs_shadow_copy2.c
source3/smbd/smb2_find.c