Remove the O_TRUNC when we open a newly created file (its not needed and

produces undesirable side effects on OpenVMS).
b=68255 r=sspitzer sr=mscott a=leaf
This commit is contained in:
colin%theblakes.com 2001-03-14 02:57:47 +00:00
Родитель fffc361896
Коммит b3e430cc14
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -766,7 +766,7 @@ nsresult nsExternalAppHandler::SetUpTempFile(nsIChannel * aChannel)
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsITransport> fileTransport;
rv = fts->CreateTransport(mTempFile, PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE, 0664, getter_AddRefs(fileTransport));
rv = fts->CreateTransport(mTempFile, PR_WRONLY | PR_CREATE_FILE, 0664, getter_AddRefs(fileTransport));
if (NS_FAILED(rv)) return rv;
rv = fileTransport->OpenOutputStream(0, -1, 0, getter_AddRefs(mOutStream));