summaryrefslogtreecommitdiff
path: root/source3/utils/smbcacls.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-12-04 07:27:35 +0000
committerAndrew Tridgell <tridge@samba.org>2000-12-04 07:27:35 +0000
commit723c9b87e77a54976e21aa0b23dcb2c055449473 (patch)
treebaedbbf3c8d817bd4382faada5383cfee5261c5a /source3/utils/smbcacls.c
parentd93101300820514c038ae52ffaf8150594701d07 (diff)
downloadsamba-723c9b87e77a54976e21aa0b23dcb2c055449473.tar.gz
samba-723c9b87e77a54976e21aa0b23dcb2c055449473.tar.bz2
samba-723c9b87e77a54976e21aa0b23dcb2c055449473.zip
fixed the parsing again and got setting acls working with w2k
(This used to be commit 374d08be6443738d6a450801866fd6e046322e2c)
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r--source3/utils/smbcacls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 47d57c1110..7f6275c6ca 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -145,7 +145,7 @@ static BOOL parse_ace(SEC_ACE *ace, char *str)
p = strchr(str,':');
if (!p) return False;
*p = 0;
- if (sscanf(p+1, "%x/%x/%08x",
+ if (sscanf(p+1, "%i/%i/%i",
&atype, &aflags, &amask) != 3 ||
!StringToSid(&sid, str)) {
return False;
@@ -280,7 +280,7 @@ static void cacl_dump(struct cli_state *cli, char *filename)
int fnum;
SEC_DESC *sd;
- fnum = cli_nt_create(cli, filename);
+ fnum = cli_nt_create(cli, filename, 0x20000);
if (fnum == -1) {
printf("Failed to open %s: %s\n", filename, cli_errstr(cli));
return;
@@ -317,7 +317,7 @@ static void cacl_set(struct cli_state *cli, char *filename,
return;
}
- fnum = cli_nt_create(cli, filename);
+ fnum = cli_nt_create(cli, filename, MAXIMUM_ALLOWED_ACCESS | 0x60000);
if (fnum == -1) {
printf("Failed to open %s: %s\n", filename, cli_errstr(cli));
return;