summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2008-12-13 11:31:20 -0800
committerJeremy Allison <jra@samba.org>2008-12-13 11:31:20 -0800
commitc689d75c27c9fb0a0b3ae05fc75d38671055cd8e (patch)
tree15d643a655f1aa0d2c62af3065262601d6e682ab /source3
parentbe3d9990635fa31e4110285842b1ca98ed4ce53c (diff)
downloadsamba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.tar.gz
samba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.tar.bz2
samba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.zip
don't return 0 on error - bad for scripts
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcacls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 1bfc4757da..f7f1272215 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -735,6 +735,8 @@ static int owner_set(struct cli_state *cli, enum chown_mode change_mode,
if (!cli_set_secdesc(cli, fnum, sd)) {
printf("ERROR: secdesc set failed: %s\n", cli_errstr(cli));
+ cli_close(cli, fnum);
+ return EXIT_FAILED;
}
cli_close(cli, fnum);