diff options
author | Tim Potter <tpot@samba.org> | 2000-12-04 06:46:52 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-04 06:46:52 +0000 |
commit | 54100bac69641254f512bfe6d1449e8d217e5af5 (patch) | |
tree | 53a5724d4159b5eb93146156d89ced8d214057a4 /source3/utils | |
parent | 92abcbc04005181262a866dc1e1322ee0f0c813a (diff) | |
download | samba-54100bac69641254f512bfe6d1449e8d217e5af5.tar.gz samba-54100bac69641254f512bfe6d1449e8d217e5af5.tar.bz2 samba-54100bac69641254f512bfe6d1449e8d217e5af5.zip |
Added some cli_errstr() calls.
(This used to be commit faaa71a032bc27d073c39da42fc2928ea3226698)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcacls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 5f750c358e..47d57c1110 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -282,14 +282,14 @@ static void cacl_dump(struct cli_state *cli, char *filename) fnum = cli_nt_create(cli, filename); if (fnum == -1) { - printf("Failed to open %s\n", filename); + printf("Failed to open %s: %s\n", filename, cli_errstr(cli)); return; } sd = cli_query_secdesc(cli, fnum); if (!sd) { - printf("ERROR: secdesc query failed\n"); + printf("ERROR: secdesc query failed: %s\n", cli_errstr(cli)); return; } @@ -319,7 +319,7 @@ static void cacl_set(struct cli_state *cli, char *filename, fnum = cli_nt_create(cli, filename); if (fnum == -1) { - printf("Failed to open %s\n", filename); + printf("Failed to open %s: %s\n", filename, cli_errstr(cli)); return; } @@ -392,7 +392,7 @@ static void cacl_set(struct cli_state *cli, char *filename, NULL, old->dacl, &sd_size); if (!cli_set_secdesc(cli, fnum, sd)) { - printf("ERROR: secdesc set failed\n"); + printf("ERROR: secdesc set failed: %s\n", cli_errstr(cli)); return; } |