summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-02 15:01:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:51 -0500
commit4f0f917b344743e16e8bacf4e72529a2890590fe (patch)
treedb3bcc3f0b533172d35513b0e3578c6c81179e78 /source
parentd289037fdbc8bd3e0723784888946d5b39ffadef (diff)
downloadsamba-4f0f917b344743e16e8bacf4e72529a2890590fe.tar.gz
samba-4f0f917b344743e16e8bacf4e72529a2890590fe.tar.xz
samba-4f0f917b344743e16e8bacf4e72529a2890590fe.zip
r20478: Make us survive & activate RAW-UNLINK
Diffstat (limited to 'source')
-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;