From bbce6b44eb2247362c353c5f90278bfafe98dc11 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 20 Oct 2000 23:59:47 +0000 Subject: Fix for vfs_fstat() crash with new stat code. Jeremy. (This used to be commit 979aa01e011d433328af0ead7644f47d0cfadf13) --- source3/smbd/open.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 12f6d12948..258e463ecf 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -548,6 +548,7 @@ files_struct *open_file_shared(connection_struct *conn,char *fname, SMB_STRUCT_S return NULL; fsp->fd = -1; + fsp->conn = conn; /* The vfs_fXXX() macros need this. */ DEBUG(10,("open_file_shared: fname = %s, share_mode = %x, ofun = %x, mode = %o, oplock request = %d\n", fname, share_mode, ofun, (int)mode, oplock_request )); @@ -868,6 +869,8 @@ files_struct *open_directory(connection_struct *conn, char *fname, if(!fsp) return NULL; + fsp->conn = conn; /* THe vfs_fXXX() macros need this. */ + if (VALID_STAT(*psbuf)) got_stat = True; -- cgit