transmission: grant r/w access to config dir#29858
Open
lolomokakus wants to merge 1 commit into
Open
Conversation
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
June 29, 2026 10:23
e9c1000 to
b663997
Compare
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
June 29, 2026 10:48
b663997 to
8351423
Compare
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
June 30, 2026 11:42
8351423 to
c61cb2d
Compare
BKPepe
requested review from
Copilot and
dangowrt
and removed request for
Copilot
July 2, 2026 10:49
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
July 10, 2026 18:58
c61cb2d to
3c59a01
Compare
openwrt-ai
reviewed
Jul 11, 2026
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
July 19, 2026 10:59
3c59a01 to
10bfdb0
Compare
Solves issues with stats etc. not updating properly and reduces the amount of leftover temporary files. Access to settings.json is kept read-only to keep it in sync with UCI. Signed-off-by: Ludvig Liu Holtze <ldw.liu.holtze@proton.me>
BKPepe
force-pushed
the
transmission_cfgdir
branch
from
July 20, 2026 06:08
10bfdb0 to
0e9db41
Compare
openwrt-ai
reviewed
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Package Details
Maintainer: @dangowrt
Description:
Transmission seems to expect to have read/write access to its config directory. When it tries to update a file there, for example
stats.json, it first creates a temporary file (likestats.json.tmp.xxxxxx) and then moves it into the proper place. However, with the current ujail configuration, this fails:stats.jsondoes not get updated and the temp file is not removed. With a long-running transmission daemon, this makes the config directory fill up with stale temp files.This PR grants the daemon write permission to files in the config directory except for
settings.json. This makes file updates work and drastically reduces the amount of temp files lying around. The daemon still creates some when it occasionally tries and fails to write tosettings.json(probably only on startup/shutdown). This seems to happen at a much lower rate than other writes though, and this way the settings file is kept in sync with UCI at all times.🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
git am(e.g., subject line, commit description, etc.)
We must try to upstream patches to reduce maintenance burden.