summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-20 23:59:47 +0000
committerJeremy Allison <jra@samba.org>2000-10-20 23:59:47 +0000
commitbbce6b44eb2247362c353c5f90278bfafe98dc11 (patch)
treebc707d3d33641e6f185cafb865a2782d01f1a176 /source3/smbd
parent4e1d30694555fe2b7b2684686778c7b143aea41e (diff)
downloadsamba-bbce6b44eb2247362c353c5f90278bfafe98dc11.tar.gz
samba-bbce6b44eb2247362c353c5f90278bfafe98dc11.tar.bz2
samba-bbce6b44eb2247362c353c5f90278bfafe98dc11.zip
Fix for vfs_fstat() crash with new stat code.
Jeremy. (This used to be commit 979aa01e011d433328af0ead7644f47d0cfadf13)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c3
1 files changed, 3 insertions, 0 deletions
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;