moved these util functions into libcli
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 May 2008 01:59:18 +0000 (11:59 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 May 2008 01:59:18 +0000 (11:59 +1000)
(This used to be commit b2f1154bc338fb56fc998f40159156cb6859075b)

source4/torture/smb2/util.c

index 4995bbe978bb11473d3994300523f1dab961e918..af4f345104f2c04e307c8ac0fe704e8b1d52eab5 100644 (file)
 #include "torture/smb2/proto.h"
 
 
-/*
-  close a handle with SMB2
-*/
-NTSTATUS smb2_util_close(struct smb2_tree *tree, struct smb2_handle h)
-{
-       struct smb2_close c;
-
-       ZERO_STRUCT(c);
-       c.in.file.handle = h;
-
-       return smb2_close(tree, &c);
-}
-
-/*
-  unlink a file with SMB2
-*/
-NTSTATUS smb2_util_unlink(struct smb2_tree *tree, const char *fname)
-{
-       union smb_unlink io;
-       
-       ZERO_STRUCT(io);
-       io.unlink.in.pattern = fname;
-
-       return smb2_composite_unlink(tree, &io);
-}
-
 /*
   write to a file on SMB2
 */