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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 12 Oct 2023 15:37:21 +0000 (16:37 +0100)
commitdec6d665b00cf13c084a3d5fe0606ffd9aae6951
treeb04c38638987e8ce890b5c90a19e273bdf8b7a28
parent45c14c66cfb4022895b795ad613623ef325493b9
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