From c8c0632c871e838fc4465b2a69b4e059e9a126c0 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 29 Aug 2013 19:36:00 +0200 Subject: 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 Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Sep 10 22:38:51 CEST 2013 on sn-devel-104 --- source3/include/smb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/include') diff --git a/source3/include/smb.h b/source3/include/smb.h index b6b04a4d9b..12882221e3 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -567,6 +567,9 @@ Offset Data length. #define NOTIFY_ACTION_REMOVED_STREAM 7 #define NOTIFY_ACTION_MODIFIED_STREAM 8 +/* timestamp format used in "previous versions" */ +#define GMT_NAME_LEN 24 /* length of a @GMT- name */ +#define GMT_FORMAT "@GMT-%Y.%m.%d-%H.%M.%S" /* where to find the base of the SMB packet proper */ #define smb_base(buf) (((const char *)(buf))+4) -- cgit