[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Wed Mar 30 06:38:02 MDT 2011


The branch, master has been updated
       via  25b43d3 s3: Use cli_ntcreate to when listing snapshots
      from  65c9d2e s3: Fix Coverity ID 2041, "UNUSED_VALUE"

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 25b43d317f7e59002323c8804bea7a75623d3513
Author: Volker Lendecke <vl at samba.org>
Date:   Wed Mar 30 13:19:46 2011 +0200

    s3: Use cli_ntcreate to when listing snapshots
    
    This works for directories as well
    
    Autobuild-User: Volker Lendecke <vlendec at samba.org>
    Autobuild-Date: Wed Mar 30 14:37:02 CEST 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/client/client.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/client/client.c b/source3/client/client.c
index 1ad20da..a12f8a2 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1715,7 +1715,11 @@ static int do_allinfo(const char *name)
 			 (unsigned long long)streams[i].size);
 	}
 
-	status = cli_open(cli, name, O_RDONLY, DENY_NONE, &fnum);
+	status = cli_ntcreate(cli, name, 0,
+			      CREATE_ACCESS_READ, 0,
+			      FILE_SHARE_READ|FILE_SHARE_WRITE
+			      |FILE_SHARE_DELETE,
+			      FILE_OPEN, 0x0, 0x0, &fnum);
 	if (!NT_STATUS_IS_OK(status)) {
 		/*
 		 * Ignore failure, it does not hurt if we can't list


-- 
Samba Shared Repository


More information about the samba-cvs mailing list