From 7e560bd802c2869d4280f15bde100bbda944b70b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 3 Jul 2009 22:36:11 +0200 Subject: For non-existent streams we have to return OBJECT_NAME_NOT_FOUND See the STREAMERROR s3 torture test. Jeremy, Tim, please check! --- source3/script/tests/test_smbtorture_s3.sh | 2 +- source3/smbd/open.c | 2 +- 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; } } -- cgit