From: Andreas Schneider Date: Wed, 12 Feb 2020 15:30:01 +0000 (+0100) Subject: s3:tests: Add smbclient test for 'force create mode = 0664' X-Git-Tag: ldb-2.1.1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ab8bf7a9c4e5a389e4fc1397e9a3bfd5bb13ff;p=thirdparty%2Fsamba.git s3:tests: Add smbclient test for 'force create mode = 0664' Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Feb 14 20:16:04 UTC 2020 on sn-devel-184 --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 0c9adcc76fd..99230a6429c 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1071,6 +1071,14 @@ sub setup_fileserver path = $share_dir comment = force group test # force group = everyone + +[create_mode_664] + path = $share_dir + comment = smb username is [%U] + create mask = 0644 + force create mode = 0664 + vfs objects = dirsort + [homes] comment = Home directories browseable = No diff --git a/source3/script/tests/test_force_create_mode.sh b/source3/script/tests/test_force_create_mode.sh new file mode 100755 index 00000000000..d5948b239b1 --- /dev/null +++ b/source3/script/tests/test_force_create_mode.sh @@ -0,0 +1,72 @@ +#!/bin/sh +# +# Blackbox test for 'force create mode' +# + +if [ $# -lt 7 ]; then +cat < $filename_path + + cat > $tmpfile <