1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fix for vfs_fstat() crash with new stat code.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 6d39df7cf8
commit 979aa01e01

View File

@ -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;