commit | fb03277e63674d182a41c31f5f71a88b8d89e0a2 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Sun Jul 22 21:15:15 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Sun Jul 22 21:15:15 2018 +0000 |
tree | e6ffaa018abc78187898a59a06fc83660031f9f5 | |
parent | 1061b65e6e59c1894e22fad012607eeaee8b6d69 [diff] |
Harden copy_file even more. This patch removes the O_CREAT open flag when we first attempt to open the destination file but we expect it to already exist. This theoretically avoids the possibility that it was removed between when we first stat'ed it, and when we attempt to open it. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337659 91177308-0d34-0410-b5e6-96231b3b80d8