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>
Sun, 12 Jan 2025 20:16:00 +0000 (23:16 +0300)
commit6f738aec61126738c409db270895b5e45ca61c82
tree7102b71aad37126bc8b71787823440dfe5d7efc3
parent373fc86b08d2b611fe5b92304ed8684311639e47
testparm: do not fail if /run/samba does not exist

Forwarded: https://gitlab.com/samba-team/samba/-/merge_requests/3872

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