summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-09-05 15:07:54 +0200
committerChristian Ambach <ambi@samba.org>2012-09-10 17:58:19 +0200
commitcf7f68503de06c2dad5f7b65a9001bceaab542ef (patch)
treee39e69013a577dcdd51d608b09511a5441a2eed6 /source3/client
parentab3369127119556082f7f775d38c3ce5c41adddd (diff)
downloadsamba-cf7f68503de06c2dad5f7b65a9001bceaab542ef.tar.gz
samba-cf7f68503de06c2dad5f7b65a9001bceaab542ef.tar.bz2
samba-cf7f68503de06c2dad5f7b65a9001bceaab542ef.zip
s3:client use more access bits for snapshot display
otherwise Windows server will reject the request for shadow copy enumeration with access denied
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 2c949ac476..1ee98565aa 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1757,7 +1757,8 @@ static int do_allinfo(const char *name)
}
status = cli_ntcreate(cli, name, 0,
- CREATE_ACCESS_READ, 0,
+ SEC_FILE_READ_DATA | SEC_FILE_READ_ATTRIBUTE |
+ SEC_STD_SYNCHRONIZE, 0,
FILE_SHARE_READ|FILE_SHARE_WRITE
|FILE_SHARE_DELETE,
FILE_OPEN, 0x0, 0x0, &fnum);