# server: stage turn snapshots in a private temp directory · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/85ef76cb13016b0cf656ac427b97c5827d2dae14)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: 85ef76cb13016b0cf656ac427b97c5827d2dae14

Requested commit: 85ef76cb13016b0cf656ac427b97c5827d2dae14

Commit: 85ef76cb13016b0cf656ac427b97c5827d2dae14

Tree: 29db4296652e8a7cbf42f77bfcbcb84692aa9c18

Author: Grok Bot

Committer: Grok Bot

## Message

```
server: stage turn snapshots in a private temp directory

The private index lived at a predictable /tmp path that std::fs::copy opened with create+truncate, following symlinks, and kept the source index mode. Create a fresh 0700 directory per capture instead (mkdir never follows a symlink and fails on an existing path) and remove it on every path.

```

## Parents

- [8a6e57a36a96d124784b9b1c82394cec05e27f1a](https://git.cafe/lucenx/signaltty/commit/8a6e57a36a96d124784b9b1c82394cec05e27f1a?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/85ef76cb13016b0cf656ac427b97c5827d2dae14?format=markdown)
