Author: tridge Date: 2004-12-31 03:54:49 +0000 (Fri, 31 Dec 2004) New Revision: 4428
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4428 Log: use minimum open permissions in the 'acl' command in smbclient, so the user is not prevented from viewing the acl by other access bits Modified: branches/SAMBA_4_0/source/client/client.c Changeset: Modified: branches/SAMBA_4_0/source/client/client.c =================================================================== --- branches/SAMBA_4_0/source/client/client.c 2004-12-31 03:51:42 UTC (rev 4427) +++ branches/SAMBA_4_0/source/client/client.c 2004-12-31 03:54:49 UTC (rev 4428) @@ -1859,7 +1859,14 @@ } pstrcat(fname,buf); - fnum = smbcli_open(cli->tree, fname, O_RDONLY, DENY_NONE); + fnum = smbcli_nt_create_full(cli->tree, fname, 0, + SEC_STD_READ_CONTROL, + 0, + NTCREATEX_SHARE_ACCESS_DELETE| + NTCREATEX_SHARE_ACCESS_READ| + NTCREATEX_SHARE_ACCESS_WRITE, + NTCREATEX_DISP_OPEN, + 0, 0); if (fnum == -1) { d_printf("%s - %s\n", fname, smbcli_errstr(cli->tree)); return -1;