summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-12-04 06:39:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-12-04 06:39:31 +0000
commit3d43b2db28db679ac4d779da853bd3f04873c9e8 (patch)
tree4a12ee8e935480e9dc9534d393e8fef27bab4382
parent3a01ece497557c3c18f27aa144460f700ba17457 (diff)
downloadsamba-3d43b2db28db679ac4d779da853bd3f04873c9e8.tar.gz
samba-3d43b2db28db679ac4d779da853bd3f04873c9e8.tar.bz2
samba-3d43b2db28db679ac4d779da853bd3f04873c9e8.zip
fixed setting ACLs on directories
(This used to be commit 117956ecb1878f09708a5dc76ec81ad3cfa8d809)
-rw-r--r--source3/utils/smbcacls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index b2fef1ec83..52a5ea769c 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -276,7 +276,7 @@ static void cacl_dump(struct cli_state *cli, char *filename)
int fnum;
SEC_DESC *sd;
- fnum = cli_open(cli, filename, O_RDONLY, 0);
+ fnum = cli_nt_create(cli, filename);
if (fnum == -1) {
printf("Failed to open %s\n", filename);
return;
@@ -313,7 +313,7 @@ static void cacl_set(struct cli_state *cli, char *filename,
return;
}
- fnum = cli_open(cli, filename, O_RDONLY, 0);
+ fnum = cli_nt_create(cli, filename);
if (fnum == -1) {
printf("Failed to open %s\n", filename);
return;