testparm: do not fail if /run/samba does not exist
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 26 Apr 2022 13:14:38 +0000 (16:14 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Oct 2023 19:33:32 +0000 (20:33 +0100)
commit90f02ae49c7bab2f000ec3555b1c0ff3d4ff24d3
treed2a9cabf72abfb54f45de006ebed375175cdb2ab
parent88ccae2cfa2c089b67c1edb10c704688ff7441ff
testparm: do not fail if /run/samba does not exist

testparm explicitly fails if $piddir or $lockdir does not exist.
However, the daemons which actually use these directories, will
create it on demand, there is no need to fail even simple testparm
operations if the dirs are not there.

This change lets to (pre)configure samba without bothering to
pre-create the directories which are overwise needed only to fulfil
testparm criteria.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name testparm-do-not-fail-if-pid-dir-does-not-exist.patch
python/samba/netcmd/testparm.py
source3/utils/testparm.c