transmission: retrieve boolean config opts using `config_get_bool`
authorSalim B <git@salim.space>
Sun, 12 Feb 2023 21:20:00 +0000 (22:20 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 18 Feb 2024 15:54:58 +0000 (16:54 +0100)
commitcbfbb655320ad898e79cafd8983ae086130bf50b
tree919451dd0f6c365ff499a7328193c1124aca3c0f
parentea055982f477a4a0e01e851cd5e11c7de1ecdeb3
transmission: retrieve boolean config opts using `config_get_bool`

The tranmission UCI config options

- `config_overwrite`
- `incomplete_dir_enabled`
- `watch_dir_enabled`

are all booleans, so we have to retrieve them using `config_get_bool` in order
to make sure they are properly interpreted in case the user sets them to a
keyword (`true`/`false`, `on`/`off` etc.) and not an integer (`0`/`1`).

Signed-off-by: Salim B <git@salim.space>
(cherry picked from commit 63dc13d7d2f5150bf3cf4b6648d8c7f10975381f)
net/transmission/files/transmission.init