From b9ab8bf7a9c4e5a389e4fc1397e9a3bfd5bb13ff Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Feb 2020 16:30:01 +0100 Subject: [PATCH] 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 --- selftest/target/Samba3.pm | 8 +++ .../script/tests/test_force_create_mode.sh | 72 +++++++++++++++++++ source3/selftest/tests.py | 1 + 3 files changed, 81 insertions(+) create mode 100755 source3/script/tests/test_force_create_mode.sh 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 <