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>
Thu, 20 Jun 2024 06:49:50 +0000 (09:49 +0300)
commit892a5326a1c746364dfd1f05908b741905a63a51
tree0f36ff138ee3cf852dfab7aa8d35426e640d1f77
parent9e5b3f9dee2c4c527fc5634fe9a0cfc968fed115
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