svn commit: samba r9010 - in branches/SAMBA_4_0/source/torture: .
tridge at samba.org
tridge at samba.org
Wed Aug 3 18:02:45 GMT 2005
Author: tridge
Date: 2005-08-03 18:02:45 +0000 (Wed, 03 Aug 2005)
New Revision: 9010
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9010
Log:
forgot to commit the change to create_directory_handle()
Modified:
branches/SAMBA_4_0/source/torture/torture_util.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/torture_util.c
===================================================================
--- branches/SAMBA_4_0/source/torture/torture_util.c 2005-08-03 17:52:33 UTC (rev 9009)
+++ branches/SAMBA_4_0/source/torture/torture_util.c 2005-08-03 18:02:45 UTC (rev 9010)
@@ -42,7 +42,7 @@
/*
create a directory, returning a handle to it
*/
-int create_directory_handle(struct smbcli_tree *tree, const char *dname)
+NTSTATUS create_directory_handle(struct smbcli_tree *tree, const char *dname, int *fnum)
{
NTSTATUS status;
union smb_open io;
@@ -64,13 +64,13 @@
io.ntcreatex.in.fname = dname;
status = smb_raw_open(tree, mem_ctx, &io);
- if (!NT_STATUS_IS_OK(status)) {
- talloc_free(mem_ctx);
- return -1;
+ talloc_free(mem_ctx);
+
+ if (NT_STATUS_IS_OK(status)) {
+ *fnum = io.ntcreatex.out.fnum;
}
- talloc_free(mem_ctx);
- return io.ntcreatex.out.fnum;
+ return status;
}
/*
More information about the samba-cvs
mailing list