diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-01 14:27:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:42 -0500 |
commit | dd44e2415ce2f0c6afddbb88b0c069ade95dc99f (patch) | |
tree | 74c02106137e0d14cc2af52576d93b09b3dbc242 /source4/torture | |
parent | d584033c6c04c0ded37c030a35fae518b09b053a (diff) | |
download | samba-dd44e2415ce2f0c6afddbb88b0c069ade95dc99f.tar.gz samba-dd44e2415ce2f0c6afddbb88b0c069ade95dc99f.tar.xz samba-dd44e2415ce2f0c6afddbb88b0c069ade95dc99f.zip |
r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
metze
(This used to be commit fa35ddcaf9bbeaa4780aa3497cdff56b02af0ab9)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/connect.c | 2 | ||||
-rw-r--r-- | source4/torture/smb2/lock.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index bd11f310d9..7d2773ebb6 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -220,7 +220,7 @@ BOOL torture_smb2_connect(struct torture_context *torture) } status = smb2_util_close(tree, h1); - if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("close should have closed the handle - %s\n", nt_errstr(status)); return False; } diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c index 0bc90e126d..08caaf2d1f 100644 --- a/source4/torture/smb2/lock.c +++ b/source4/torture/smb2/lock.c @@ -82,7 +82,7 @@ static BOOL test_valid_request(TALLOC_CTX *mem_ctx, struct smb2_tree *tree) lck.in.file.handle.data[0] +=1; status = smb2_lock(tree, &lck); - CHECK_STATUS(status, NT_STATUS_NOT_FOUND); + CHECK_STATUS(status, NT_STATUS_FILE_CLOSED); lck.in.file.handle.data[0] -=1; lck.in.unknown1 = 0x0001; |