diff options
| author | Spicer Matthews <spicer@cloudmanic.com> | 2026-05-18 04:59:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-18 14:59:01 +0300 |
| commit | 818b2c507ade7c817d5b6c1c4f825383807977bb (patch) | |
| tree | b752ea8f2d2f96c9ac323958c08f89c6bf3800d1 /src/input/encode.rs | |
| parent | 29e8817e1fb417968c6a5061af547139495b2e49 (diff) | |
fix: preserve symlinks when saving session.json (#147)
session.json is written via tmp + atomic rename. rename() replaces the
symlink itself, so users who stow session.json from a dotfiles repo lose
the link on every save.
Resolve symlinks before placing the .tmp so the rename targets the
canonical file and the symlink at the input path is preserved. Atomicity
is preserved because the .tmp and the target stay in the same directory.
refs #139
Diffstat (limited to 'src/input/encode.rs')
0 files changed, 0 insertions, 0 deletions
