mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
0240026f36
Summary: Before this diff VFS::write_regular did not handle correctly use case when file already existed as as symlink - it would write into symlink location, instead of replacing symlink with a regular file (see updated test_symlink_overwrite that is failing on old implementation) This diff adds O_NOFOLLOW option on unix when overwriting the file. When destination is a symlink, attempt to write fails with E_LOOP and triggers clear_conflict that removes symlink and allows retry write to succeed. This also allows one of test cases in checkout that previously did not work Reviewed By: quark-zju Differential Revision: D26378893 fbshipit-source-id: 28bcdaba78db283ac7a25bb232c198d3d8f73e5d |
||
---|---|---|
.. | ||
fs | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
test_support | ||
test-data | ||
.gitignore | ||
Eden.project.toml |