removing the Truncate flag so file do not get destroyed when opening an

output stream to them.  r=warren.
This commit is contained in:
dougt%netscape.com 2000-02-01 23:24:57 +00:00
Родитель 1468c598a2
Коммит 59d1135635
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -178,7 +178,7 @@ public:
return NS_ERROR_FAILURE;
}
rv = NS_NewFileOutputStream(mFile,
PR_CREATE_FILE | PR_WRONLY | PR_TRUNCATE,
PR_CREATE_FILE | PR_WRONLY,
0664,
aOutputStream);
PR_LOG(gFileTransportLog, PR_LOG_DEBUG,
@ -579,7 +579,7 @@ nsFileTransport::OpenOutputStream(PRUint32 startPosition, nsIOutputStream **resu
nsCOMPtr<nsIOutputStream> str;
rv = NS_NewFileOutputStream(mFile,
PR_CREATE_FILE | PR_WRONLY | PR_TRUNCATE,
PR_CREATE_FILE | PR_WRONLY,
0664,
getter_AddRefs(str));
if (NS_FAILED(rv)) return rv;