fix temp file written to wrong location

This commit is contained in:
Chris Danford
2003-12-18 03:57:21 +00:00
parent 71247db8d9
commit ca7d4b7456
@@ -215,7 +215,10 @@ bool MemoryCardDriver_Linux::MountAndTestWrite( UsbStorageDevice* pDevice )
// Try to write a file.
// TODO: Can we use RageFile for this?
const CString sFile = "temp";
CString sFile = usbd.sOsMountDir;
if( sFile[sFile.length()-1 != '/' )
sFile += '/';
sFile += "temp";
int fd = open( sFile, O_WRONLY|O_CREAT|O_TRUNC );
if( fd == -1 )
return false;