diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-14 16:34:13 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-14 16:34:13 -0500 |
| commit | 95a7f6bc85ec5695388def1ccfd785a631d3958b (patch) | |
| tree | c57c68c77f0a32672e9ac5ca31614fed0f94ad1d /libs/plugin_python/src/mobase | |
| parent | 7133cf6308fb5c1c156bae9f182a1dafcb11f715 (diff) | |
bg3: publish only top-level overwrite mappings to avoid self-symlinks
After the first launch, doc/Stats -> overwrite/Stats (and siblings) are
deployed as directory symlinks. The next mappings() pass rglob'd
overwrite/ and emitted a Mapping for every nested entry — destinations
resolved back through the parent symlink to the source, so both
create_mapping's unlink+symlink_to and fuseconnector's
create_directory_symlink ended up operating on a path that physically
*was* the source, producing self-pointing symlinks and wiping the
directory contents on the next launch.
Emit one directory mapping per redirected top-level subdir instead. The
parent symlink covers everything underneath via normal path resolution,
so no nested mapping is generated and the alias condition can't arise.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs/plugin_python/src/mobase')
0 files changed, 0 insertions, 0 deletions
