libcli/smb: list NT_STATUS_FILE_CLOSED as expected ioctl response.
commit6a82cb7b687caa89c7e994b85715a15bfe6d3fe3
authorStefan Metzmacher <metze@samba.org>
Tue, 30 Sep 2014 08:02:01 +0000 (30 10:02 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 21:35:08 +0000 (30 23:35 +0200)
treedcabc67b336ad6e5ec96d0194dce25b48668963c
parenta51b6232d2822d48ffef089dca95b52ec052d9cc
libcli/smb: list NT_STATUS_FILE_CLOSED as expected ioctl response.

Some IOCTL requests change the behavior with new protocol versions.
E.g. FSCTL_VALIDATE_NEGOTIATE_INFO resulted in NT_STATUS_FILE_CLOSED
for old servers.

As SMB2 signing might be skipped for responses with NT_STATUS_FILE_CLOSED
we need to list it explicitly in the expected return values.

This way we'll get NT_STATUS_ACCESS_DENIED, if the server doesn't
sign the response to a signed requests.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
libcli/smb/smb2cli_ioctl.c