terminal/.github/actions/spelling
Don-Vito f1dc649135
Fix WriteUTF8FileAtomic to preserve symlinks (#10908)
WriteUTF8FileAtomic  overrides the content of the file "atomically"
by creating a temp file and then renaming it to the original path.
The problem arises when the original path is symbolic link,
as the link itself gets overridden by a file (rather than the link target).
This PR introduces a special handling of the symlinks:
if the path as a symlink we resolve the path and use:
1. target's directory to create a temp-file in
2. target itself to be replaced with the tempfile.

Symlink resolution is problematic when the target path does not exist,
as there is no good utility that resolves such link (canonical() fails).
In this corner case we skip the "atomic" approach of renaming the file
and write the link target directly.

Closes #10787
2021-08-12 16:47:16 +00:00
..
allow Move Pane to Tab (GH7075) (#10780) 2021-08-12 16:41:17 +00:00
expect Fix WriteUTF8FileAtomic to preserve symlinks (#10908) 2021-08-12 16:47:16 +00:00
patterns Convert four INSIDE_WINDOWS blocks to til features (#10404) 2021-06-10 23:48:54 +00:00
advice.md ci: spelling: update to v0.0.18 (#10035) 2021-05-14 08:28:37 -05:00
excludes.txt ci: spelling: update to v0.0.18 (#10035) 2021-05-14 08:28:37 -05:00
reject.txt ci: spelling: update to v0.0.18 (#10035) 2021-05-14 08:28:37 -05:00