Fix to larryh's earlier checkin to implement bug #17558. Previous fix from bad diff would always result in an error trying to create a file that already existed (should only be an error in certain cases). r=sfraser

This commit is contained in:
sdagley%netscape.com 1999-11-05 01:18:07 +00:00
Родитель d9a983939b
Коммит 887d49e666
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -409,11 +409,11 @@ PRInt32 _MD_Open(const char *path, PRIntn flags, int mode)
err = PR_FILE_EXISTS_ERROR;
goto ErrorExit;
}
if (err != noErr)
if ((err != noErr) && (err != dupFNErr))
goto ErrorExit;
}
open:
err = PBHOpenDFSync(&hpb);
if (err != noErr)