Optimization suggested by Metze. Without this patch,
authorJeremy Allison <jra@samba.org>
Wed, 8 Sep 2010 23:55:24 +0000 (16:55 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Sep 2010 23:55:24 +0000 (16:55 -0700)
commitfcac46a61245e6b05f88ed80ec4b554ffd55dc63
tree52a6a7438aef1df156313dd643192b6031bad9c4
parent4f0b190a3086db3789e4198f5409a2b5c1980bf9
Optimization suggested by Metze. Without this patch,
FindFirst with 'path\to\some\dir\with\files\*'

triggers the following stat calls

path\to\some\dir\with\files\* => ENOENT
path\
path\to\
path\to\some\
path\to\some\dir\
path\to\some\dir\with\
path\to\some\dir\with\files\
path\to\some\dir\with\files\* => ENOENT

With this patch we get :

path\to\some\dir\with\files\* => ENOENT
path\to\some\dir\with\files = OK

Jeremy.
source3/smbd/filename.c