diff options
author | sdagley%netscape.com <devnull@localhost> | 1999-11-05 01:18:07 +0000 |
---|---|---|
committer | sdagley%netscape.com <devnull@localhost> | 1999-11-05 01:18:07 +0000 |
commit | a874d1fbf0e4874b6b82ae460411474bec5756f4 (patch) | |
tree | 1e7286a9fa1ea029e9103c89e0638392b15951a0 | |
parent | bc2534e9bcaf35fafc1cc48b0d84157b4f3a5c27 (diff) | |
download | nspr-hg-a874d1fbf0e4874b6b82ae460411474bec5756f4.tar.gz |
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=sfraserno_neckoutil_baseSeaMonkey_M11_BASE
-rw-r--r-- | pr/src/md/mac/macio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/md/mac/macio.c b/pr/src/md/mac/macio.c index 0f7b7fab..07aa4bc0 100644 --- a/pr/src/md/mac/macio.c +++ b/pr/src/md/mac/macio.c @@ -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) |