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>
Mon, 11 Dec 2023 10:19:18 +0000 (13:19 +0300)
commit4e05239702871bcd4f4bb6fa8b1272829e3fbfa7
tree7ccf1867fbb367e945216078fc86110643034837
parenta8ccc5b57487be413c6a69c8e686ade5250f2550
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