]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Add 'hide new files timeout' related data to fileserver_smb1
authorNoel Power <noel.power@suse.com>
Mon, 16 Dec 2019 16:20:07 +0000 (16:20 +0000)
committerRalph Boehme <slow@samba.org>
Fri, 3 Apr 2020 15:08:32 +0000 (15:08 +0000)
In order to support samba3.smbtorture_s3.hidenewfiles (and moving
the test to fileserver_smb1) we need to ensure we have some supporting
config

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/target/Samba3.pm

index 357a356907ac0ba1852f4fa613b256f1423afbbc..22c7c30245f64c329c11834f85ddcc8941cc6c9d 100755 (executable)
@@ -1460,10 +1460,15 @@ sub setup_fileserver
 sub setup_fileserver_smb1
 {
        my ($self, $path) = @_;
+       my $prefix_abs = abs_path($path);
        my $conf = "
 [global]
        client min protocol = CORE
        server min protocol = LANMAN1
+
+[hidenewfiles]
+       path = $prefix_abs/share
+       hide new files timeout = 5
 ";
        return $self->setup_fileserver($path, $conf, "FILESERVERSMB1");
 }