Open kirawi opened 3 weeks ago
I think the issue is https://github.com/helix-editor/helix/blob/b53dafe326d51b7f64a1c52379e3d4150cd2991e/helix-view/src/document.rs#L973, where the file is created with the access rights, owner and group of the running helix process, not that of the target file
I don't think so. I believe it would open with the same file permissions if it already exists, and for backup files we already copy metadata on https://github.com/helix-editor/helix/blob/b53dafe326d51b7f64a1c52379e3d4150cd2991e/helix-view/src/document.rs#L1008-L1014
Actually you might have been right. This seems to be fixed by https://github.com/helix-editor/helix/pull/11374
Summary
Writing a file may change the file's ownership when writing.
Reproduction Steps
Helix log
No response
Platform
All
Terminal Emulator
N/a
Installation Method
release
Helix Version
helix 24.7