From 8ade96e5e4385767dfd733db966f85ef16d77501 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Jul 2005 05:16:57 +0000 Subject: r8121: yuck. w2k3 seems to choose ERRDOS:ERRbaduid or NT_STATUS_INVALID_HANDLE on a per call basis for a bad vuid. That means it is doing checking for a valid vuid in each backend function, rather than globally. I don't want to emulate that as it is way too error prone, and could easily lead to a security hole, so instead accept either error code in our test suite. (This used to be commit aefa9e53fa97551c1b15bdd50565881e63aea9a8) --- source4/torture/torture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source4/torture/torture.c b/source4/torture/torture.c index d7dbbc43cf..935d1211e1 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -1347,7 +1347,9 @@ static BOOL run_vuidtest(void) } if (!NT_STATUS_EQUAL(cli->transport->error.e.nt_status, - NT_STATUS_DOS(ERRSRV, ERRbaduid))) { + NT_STATUS_DOS(ERRSRV, ERRbaduid)) && + !NT_STATUS_EQUAL(cli->transport->error.e.nt_status, + NT_STATUS_INVALID_HANDLE)) { printf("ERROR: qfileinfo should have returned DOS error " "ERRSRV:ERRbaduid\n but returned %s\n", smbcli_errstr(cli->tree)); -- cgit