summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsource/script/tests/selftest.sh3
-rwxr-xr-xsource/script/tests/test_posix_s3.sh2
-rw-r--r--source/smbd/reply.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/source/script/tests/selftest.sh b/source/script/tests/selftest.sh
index 5ec96f63e28..f613f2126f3 100755
--- a/source/script/tests/selftest.sh
+++ b/source/script/tests/selftest.sh
@@ -142,6 +142,9 @@ cat >$SERVERCONFFILE<<EOF
path = $PREFIX_ABS/tmp
read only = no
smbd:sharedelay = 100000
+ map hidden = yes
+ map system = yes
+ create mask = 755
[hideunread]
copy = tmp
hide unreadable = yes
diff --git a/source/script/tests/test_posix_s3.sh b/source/script/tests/test_posix_s3.sh
index b9edbb797b8..c4426847321 100755
--- a/source/script/tests/test_posix_s3.sh
+++ b/source/script/tests/test_posix_s3.sh
@@ -46,7 +46,7 @@ skipped="BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE BASE-OPENATTR BASE-TCONDEV
skipped="$skipped RAW-ACLS RAW-CLOSE RAW-COMPOSITE RAW-CONTEXT RAW-EAS"
skipped="$skipped RAW-IOCTL RAW-MUX RAW-NOTIFY RAW-OPEN"
skipped="$skipped RAW-QFILEINFO RAW-QFSINFO RAW-RENAME RAW-SEARCH"
-skipped="$skipped RAW-SFILEINFO RAW-STREAMS RAW-UNLINK RAW-WRITE"
+skipped="$skipped RAW-SFILEINFO RAW-STREAMS RAW-WRITE"
echo "WARNING: Skipping tests $skipped"
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 607c12f8b13..cb25b69a317 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -2074,7 +2074,7 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype,
/* Quick check for "." and ".." */
if (fname[0] == '.') {
if (!fname[1] || (fname[1] == '.' && !fname[2])) {
- if ((dirtype & FILE_ATTRIBUTE_DIRECTORY) && (dirtype & FILE_ATTRIBUTE_SYSTEM)) {
+ if (dirtype & FILE_ATTRIBUTE_DIRECTORY) {
sys_direntry = True;
} else {
continue;