Author: tridge
Date: 2004-10-25 07:11:12 +0000 (Mon, 25 Oct 2004)
New Revision: 3202

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3202&nolog=1

Log:
return a old DOS error code ERRSRV:ERRbaduid for a bad vuid. This means we now pass 
the BASE-VUID test.



Modified:
   branches/SAMBA_4_0/source/script/tests/test_posix.sh
   branches/SAMBA_4_0/source/smb_server/smb_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh        2004-10-25 07:04:03 
UTC (rev 3201)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh        2004-10-25 07:11:12 
UTC (rev 3202)
@@ -30,7 +30,7 @@
 
 tests="BASE-FDPASS BASE-LOCK1 BASE-LOCK2 BASE-LOCK3 BASE-LOCK4"
 tests="$tests BASE-LOCK5 BASE-LOCK6 BASE-LOCK7 BASE-UNLINK BASE-ATTR"
-tests="$tests BASE-NEGNOWAIT BASE-DIR"
+tests="$tests BASE-NEGNOWAIT BASE-DIR BASE-VUID"
 tests="$tests BASE-DENY2 BASE-TCON BASE-TCONDEV BASE-RW1"
 tests="$tests BASE-DENY3 BASE-XCOPY BASE-OPEN"
 tests="$tests BASE-DELETE BASE-PROPERTIES BASE-MANGLE"
@@ -39,7 +39,7 @@
 tests="$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME"
 
 
-soon="BASE-DIR1 BASE-DENY1 BASE-VUID BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET"
+soon="BASE-DIR1 BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET"
 soon="$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX RAW-IOCTL"
 soon="$soon RAW-CHKPATH RAW-UNLINK RAW-READ RAW-WRITE RAW-RENAME RAW-CLOSE 
BASE-TRANS2"
 

Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb_server.c   2004-10-25 07:04:03 UTC (rev 
3201)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c   2004-10-25 07:11:12 UTC (rev 
3202)
@@ -480,7 +480,7 @@
        /* see if the vuid is valid */
        if ((flags & AS_USER) && !req->session) {
                if (!(flags & AS_GUEST)) {
-                       req_reply_error(req, NT_STATUS_INVALID_HANDLE);
+                       req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
                        return;
                }
        }

Reply via email to