s3-client: smbclient shows no error if deleting a directory with del failed
authorJeremy Allison <jra@samba.org>
Tue, 12 Nov 2013 23:55:51 +0000 (15:55 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 14 Nov 2013 20:23:07 +0000 (21:23 +0100)
commit4ee4a7e96e71cee27c30d23610a7f83d968a8ba0
tree10456c478baa7777d16db684eebf324e5a59a089
parentfc611dd6e849537aa4817504275cdbf48f6f1e79
s3-client: smbclient shows no error if deleting a directory with del failed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10260

In SMB1 the server filters by attribute requested, in SMB2 there is
no attribute sent. Emulate this on the client to provide the same
ABI to callers.

In SMB1 the server returns NT_STATUS_NO_SUCH_FILE if FindFirst
finds no files. Emulate this on the client.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Nov 14 21:23:07 CET 2013 on sn-devel-104
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/cli_smb2_fnum.h
source3/libsmb/clilist.c