summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cli_smb2_fnum.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-11-12 15:55:51 -0800
committerAndreas Schneider <asn@cryptomilk.org>2013-11-14 21:23:07 +0100
commit4ee4a7e96e71cee27c30d23610a7f83d968a8ba0 (patch)
tree10456c478baa7777d16db684eebf324e5a59a089 /source3/libsmb/cli_smb2_fnum.h
parentfc611dd6e849537aa4817504275cdbf48f6f1e79 (diff)
downloadsamba-4ee4a7e96e71cee27c30d23610a7f83d968a8ba0.tar.gz
samba-4ee4a7e96e71cee27c30d23610a7f83d968a8ba0.tar.xz
samba-4ee4a7e96e71cee27c30d23610a7f83d968a8ba0.zip
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
Diffstat (limited to 'source3/libsmb/cli_smb2_fnum.h')
-rw-r--r--source3/libsmb/cli_smb2_fnum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/cli_smb2_fnum.h b/source3/libsmb/cli_smb2_fnum.h
index 00686866361..a5cae25a2ba 100644
--- a/source3/libsmb/cli_smb2_fnum.h
+++ b/source3/libsmb/cli_smb2_fnum.h
@@ -42,6 +42,7 @@ NTSTATUS cli_smb2_rmdir(struct cli_state *cli, const char *dirname);
NTSTATUS cli_smb2_unlink(struct cli_state *cli,const char *fname);
NTSTATUS cli_smb2_list(struct cli_state *cli,
const char *pathname,
+ uint16_t attribute,
NTSTATUS (*fn)(const char *,
struct file_info *,
const char *,