]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:client use more access bits for snapshot display
authorChristian Ambach <ambi@samba.org>
Wed, 5 Sep 2012 13:07:54 +0000 (15:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Sep 2012 08:53:25 +0000 (10:53 +0200)
otherwise Windows server will reject the request for shadow copy enumeration
with access denied

The last 2 patches address bug #9137 - smbclient allinfo does not show snapshot
list.

source3/client/client.c

index 05c4f910b9f62b3b7fef18c52afdd2f0663b4441..58115ad19c849a949681210d2d6771f19734ff06 100644 (file)
@@ -1717,7 +1717,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);