summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c6
1 files changed, 5 insertions, 1 deletions
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