From 3d43b2db28db679ac4d779da853bd3f04873c9e8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Dec 2000 06:39:31 +0000 Subject: fixed setting ACLs on directories (This used to be commit 117956ecb1878f09708a5dc76ec81ad3cfa8d809) --- source3/utils/smbcacls.c | 4 ++-- 1 file 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; -- cgit