summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-05 05:18:44 +0000
committerTim Potter <tpot@samba.org>1999-04-05 05:18:44 +0000
commita4194191ce87cc630e34fe65ac8f207cc4330cae (patch)
treee5503cc53c76ecb91047053bef534ba2e8c7941c /source3/smbd
parent69ae7902bb2ba16f6312aaaa0cdee1204297905a (diff)
downloadsamba-a4194191ce87cc630e34fe65ac8f207cc4330cae.tar.gz
samba-a4194191ce87cc630e34fe65ac8f207cc4330cae.tar.bz2
samba-a4194191ce87cc630e34fe65ac8f207cc4330cae.zip
Use VFS I/O for stat_cache_lookup()
(This used to be commit 5ece1fcffbc5a5062c02edf6f2ecb405c2a2f43e)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/filename.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 913d0b367e..fb2f57339b 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -229,7 +229,9 @@ static void stat_cache_add( char *full_orig_name, char *orig_translated_path)
Return True if we translated (and did a scuccessful stat on) the entire name.
*****************************************************************************/
-static BOOL stat_cache_lookup( char *name, char *dirpath, char **start, SMB_STRUCT_STAT *pst)
+static BOOL stat_cache_lookup(struct connection_struct *conn, char *name,
+ char *dirpath, char **start,
+ SMB_STRUCT_STAT *pst)
{
stat_cache_entry *scp;
stat_cache_entry *longest_hit = NULL;
@@ -282,7 +284,7 @@ static BOOL stat_cache_lookup( char *name, char *dirpath, char **start, SMB_STRU
* and then promote it to the top.
*/
- if(dos_stat( longest_hit->translated_name, pst) != 0) {
+ if(conn->vfs_ops.stat(longest_hit->translated_name, pst) != 0) {
/*
* Discard this entry.
*/
@@ -431,7 +433,7 @@ BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
pstrcpy(orig_path, name);
- if(stat_cache_lookup( name, dirpath, &start, &st)) {
+ if(stat_cache_lookup(conn, name, dirpath, &start, &st)) {
if(pst)
*pst = st;
return True;