From 25b43d317f7e59002323c8804bea7a75623d3513 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 30 Mar 2011 13:19:46 +0200 Subject: s3: Use cli_ntcreate to when listing snapshots This works for directories as well Autobuild-User: Volker Lendecke Autobuild-Date: Wed Mar 30 14:37:02 CEST 2011 on sn-devel-104 --- source3/client/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 1ad20da07a..a12f8a2965 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 -- cgit