summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-03 22:36:11 +0200
committerVolker Lendecke <vl@samba.org>2009-07-03 23:20:57 +0200
commit7e560bd802c2869d4280f15bde100bbda944b70b (patch)
tree3a79c37cdfecb8cb57cd119f7641002ba97d6853 /source3
parent56ae65ad5c0b9d4ef51dd06bd8a67841de2b57d3 (diff)
downloadsamba-7e560bd802c2869d4280f15bde100bbda944b70b.tar.gz
samba-7e560bd802c2869d4280f15bde100bbda944b70b.tar.bz2
samba-7e560bd802c2869d4280f15bde100bbda944b70b.zip
For non-existent streams we have to return OBJECT_NAME_NOT_FOUND
See the STREAMERROR s3 torture test. Jeremy, Tim, please check!
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/script/tests/test_smbtorture_s3.sh2
-rw-r--r--source3/smbd/open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/script/tests/test_smbtorture_s3.sh b/source3/script/tests/test_smbtorture_s3.sh
index 4e439fe8a0..c577ed18d4 100755
--- a/source3/script/tests/test_smbtorture_s3.sh
+++ b/source3/script/tests/test_smbtorture_s3.sh
@@ -24,7 +24,7 @@ incdir=`dirname $0`
tests="FDPASS LOCK1 LOCK2 LOCK3 LOCK4 LOCK5 LOCK6 LOCK7"
#tests="$tests UNLINK BROWSE ATTR TRANS2 MAXFID TORTURE "
tests="$tests UNLINK BROWSE ATTR TRANS2 TORTURE "
-tests="$tests OPLOCK1 OPLOCK2 OPLOCK3"
+tests="$tests OPLOCK1 OPLOCK2 OPLOCK3 STREAMERROR"
tests="$tests DIR DIR1 TCON TCONDEV RW1 RW2 RW3"
tests="$tests OPEN XCOPY RENAME DELETE PROPERTIES W2K"
tests="$tests TCON2 IOCTL CHKPATH FDSESS LOCAL-SUBSTITUTE CHAIN1"
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 21e5804123..df31365675 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3487,7 +3487,7 @@ NTSTATUS create_file_default(connection_struct *conn,
TALLOC_FREE(fname);
if (!(conn->fs_capabilities & FILE_NAMED_STREAMS)) {
- status = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+ status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
goto fail;
}
}