зеркало из https://github.com/mozilla/pjs.git
removing the Truncate flag so file do not get destroyed when opening an
output stream to them. r=warren.
This commit is contained in:
Родитель
1468c598a2
Коммит
59d1135635
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче