OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
   
    cvs@GRAND.CENTRAL.ORG
     
    cvs@GRAND.CENTRAL.ORG
       
    Fri, 07 Mar 2008 10:35:38 EST
    
    
  
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd
Modified Files:
	smb.c 
Log Message:
DELTA windows-smb-writedata-crash-20080307
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT
FIXES 88731
If an application opens a file for read only and then attempts to 
write to it, we would attempt to release an scp mutex without having
obtained either the scp or the mutex within smb_WriteData
There was no check in smb_ReadData to ensure that the file was opened
for reading.  Add one.
--- DELTA config follows ---
windows-smb-writedata-crash-20080307 openafs/src/WINNT/afsd/smb.c 1.189 1.190