From af0e199b31ea4132e369508d72888757887b3327 Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Thu, 22 Jan 2009 20:14:38 -0800 Subject: Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIR * this allows VFS implementations that prefetch stat information on readdir to return it through one VFS call * backwards compatibility is maintained by passing in NULL * if the system readdir doesn't return stat info, the stat struct is set to invalid --- source3/modules/vfs_catia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/modules/vfs_catia.c') diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index d0c341fdd3..2870254bfb 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -105,11 +105,12 @@ static SMB_STRUCT_DIR *catia_opendir(vfs_handle_struct *handle, static SMB_STRUCT_DIRENT *catia_readdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { - SMB_STRUCT_DIRENT *result = SMB_VFS_NEXT_READDIR(handle, dirp); - SMB_STRUCT_DIRENT *newdirent; + SMB_STRUCT_DIRENT *result = NULL; + SMB_STRUCT_DIRENT *newdirent = NULL; char *newname; size_t newnamelen; + result = SMB_VFS_NEXT_READDIR(handle, dirp, NULL); if (result == NULL) { return result; } -- cgit