diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-30 13:19:46 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-30 14:37:02 +0200 |
commit | 25b43d317f7e59002323c8804bea7a75623d3513 (patch) | |
tree | 98ba6b017921a2955996cd1cbb0dc05c1cd95da3 /source3/client | |
parent | 65c9d2e6216f71f258ea796d0959bf7e1e4d8732 (diff) | |
download | samba-25b43d317f7e59002323c8804bea7a75623d3513.tar.gz samba-25b43d317f7e59002323c8804bea7a75623d3513.tar.bz2 samba-25b43d317f7e59002323c8804bea7a75623d3513.zip |
s3: Use cli_ntcreate to when listing snapshots
This works for directories as well
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 14:37:02 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 6 |
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 |