[PATCH] s3:smb2_find: Return that timestamps do not exist as directories

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Sep 10 11:07:31 CEST 2013


On Mon, Sep 09, 2013 at 02:33:47PM -0700, Christof Schmitt wrote:
> The best way to fix this seems to be in smb2_find.c. The shadow_copy2 module
> only sees a stat call, and cannot decide if the stat legitimate or if it should
> be rejected.
> 
> -- 
> Christof Schmitt || IBM || SONAS System Development || Tucson, AZ
> christof.schmitt at us.ibm.com  ||  +1-520-799-2469  (T/L: 321-2469)

> >From 15cf3e1de3cd26abbd26d001ca6dad7107d76030 Mon Sep 17 00:00:00 2001
> From: Christof Schmitt <christof.schmitt at us.ibm.com>
> Date: Thu, 29 Aug 2013 19:36:00 +0200
> Subject: [PATCH] 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 at us.ibm.com>
Reviewed-by: Volker Lendecke <vl at samba.org>

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

*****************************************************************
visit us on it-sa:IT security exhibitions in Nürnberg, Germany
October 8th - 10th 2013, hall 12, booth 333
free tickets available via code 270691 on: www.it-sa.de/gutschein
******************************************************************


More information about the samba-technical mailing list