summaryrefslogtreecommitdiff
path: root/source4/ntvfs/smb2
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-05-19 13:05:08 +1000
committerAndrew Tridgell <tridge@samba.org>2008-05-19 13:05:08 +1000
commite7d993b8b26e121ff37640825b4d2f2c4d6332bf (patch)
tree5f3b27e8862c511fde519d64474ec176350cd5c7 /source4/ntvfs/smb2
parent03eb236f20e6efef9993e8beabfbae16787f32fb (diff)
downloadsamba-e7d993b8b26e121ff37640825b4d2f2c4d6332bf.tar.gz
samba-e7d993b8b26e121ff37640825b4d2f2c4d6332bf.tar.bz2
samba-e7d993b8b26e121ff37640825b4d2f2c4d6332bf.zip
added SMB2 proxying of rmdir
(This used to be commit 1e0c24b2760f2a632333b51710cd9581f0cee851)
Diffstat (limited to 'source4/ntvfs/smb2')
-rw-r--r--source4/ntvfs/smb2/vfs_smb2.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/ntvfs/smb2/vfs_smb2.c b/source4/ntvfs/smb2/vfs_smb2.c
index 3a9a74a928..cc09daf83f 100644
--- a/source4/ntvfs/smb2/vfs_smb2.c
+++ b/source4/ntvfs/smb2/vfs_smb2.c
@@ -349,6 +349,10 @@ static void async_simple_composite(struct composite_context *c_req)
/*
delete a file - the dirtype specifies the file types to include in the search.
The name can contain CIFS wildcards, but rarely does (except with OS/2 clients)
+
+ BUGS:
+ - doesn't handle wildcards
+ - doesn't obey attrib restrictions
*/
static NTSTATUS cvfs_unlink(struct ntvfs_module_context *ntvfs,
struct ntvfs_request *req, union smb_unlink *unl)
@@ -466,7 +470,14 @@ static NTSTATUS cvfs_mkdir(struct ntvfs_module_context *ntvfs,
static NTSTATUS cvfs_rmdir(struct ntvfs_module_context *ntvfs,
struct ntvfs_request *req, struct smb_rmdir *rd)
{
- return NT_STATUS_NOT_IMPLEMENTED;
+ struct cvfs_private *private = ntvfs->private_data;
+ struct composite_context *c_req;
+
+ CHECK_ASYNC(req);
+
+ c_req = smb2_composite_rmdir_send(private->tree, rd);
+
+ SIMPLE_COMPOSITE_TAIL;
}
/*