Fix writing hardlinks (#11340)

* don't use backup files with hardlinks

* check if the inodes remain the same in the test

* move funcs to faccess and use AsRawHandle

* use a copy as a backup for hardlinks

* delete backup after copy
This commit is contained in:
Kirawi 2024-07-27 13:21:52 -04:00 committed by GitHub
parent 0813147b97
commit e5372b04a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 96 additions and 12 deletions

View file

@ -86,3 +86,4 @@ helix-loader = { path = "../helix-loader" }
smallvec = "1.13"
indoc = "2.0.5"
tempfile = "3.10.1"
same-file = "1.0.1"