[CXX-1231] When patching include paths to use 'mnmlstc', avoid filename collisions (PR #582) Created: 27/Feb/17  Updated: 27/Feb/17  Resolved: 27/Feb/17

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: David Golden
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Tracking ticket for PR-582:

By default, perl's "-i" option tells it to:

Open the specified file.
Unlink the file.
Create a new file with the same name.
Copy the old file to the new file, transforming it per the regex.
This is not valid on Windows because you can't have two files with the same name, even if one of them has been unlinked.

The quick fix is to tell Perl to instead create a backup file, so it moves the original file rather than unlinking it.



 Comments   
Comment by David Golden [ 27/Feb/17 ]

Amended and applied as https://github.com/mongodb/mongo-cxx-driver/commit/4bfcf67b667c259d7230157b91784875710be270

(Forgot to fixup the subject line with the ticket number. Mea culpa.)

Generated at Wed Feb 07 22:01:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.