]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: set pid directory in client's smb.conf
authorSamuel Cabrero <scabrero@suse.de>
Tue, 15 Sep 2020 11:32:00 +0000 (13:32 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Wed, 16 Sep 2020 22:45:38 +0000 (22:45 +0000)
Set a pid file directory to avoid the following testparm error:

ERROR: pid directory /usr/local/samba/var/run does not exist

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
selftest/selftest.pl

index 89f98d03d2bc067c9ee7b006c8477d5a2c3f1867..6ea21fa6bfeab3fdcce5edc7e46ced371fc8ed5f 100755 (executable)
@@ -509,6 +509,7 @@ sub write_clientconf($$$)
                { name => "statedir", mask => 0777 },
                { name => "cachedir", mask => 0777 },
                { name => "pkinit", mask => 0700 },
+               { name => "pid", mask => 0777 },
                # the ncalrpcdir needs exactly 0755 otherwise tests fail.
                { name => "ncalrpcdir", mask => 0755, umask => 0022 },
        );
@@ -573,6 +574,7 @@ sub write_clientconf($$$)
        state directory = $clientdir/statedir
        cache directory = $clientdir/cachedir
        ncalrpc dir = $clientdir/ncalrpcdir
+       pid directory = $clientdir/pid
        panic action = $RealBin/gdb_backtrace \%d
        max xmit = 32K
        notify:inotify = false