stunnel: create PID directory before alt_config_file return
authorJoshua Klinesmith <redacted>
Mon, 30 Mar 2026 19:52:39 +0000 (15:52 -0400)
committerFlorian Eckert <redacted>
Wed, 1 Apr 2026 06:47:47 +0000 (08:47 +0200)
commit9e3c6682114ffa93ed3db88d76ca9600c98b3d53
tree714d365b3057f72ea4cf45a4ce262d79509e02c7
parent0f729f36b228300a13eae8a2a20d507b2d3cd4b1
stunnel: create PID directory before alt_config_file return

When alt_config_file is set, global_defs() returns before creating
the PID file directory. stunnel then fails to start because it
cannot write its PID file to the nonexistent directory.

Move the PID directory creation and ownership setup above the
alt_config_file early return so it runs regardless of config mode.

Fixes: openwrt/openwrt#28982
Signed-off-by: Joshua Klinesmith <redacted>
Co-Authored-By: Claude Opus 4.6 (1M context) <redacted>
net/stunnel/Makefile
net/stunnel/files/stunnel.init
git clone https://git.99rst.org/PROJECT