diff options
author | Herb Lewis <herb@samba.org> | 2008-12-13 11:31:20 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-12-13 11:31:20 -0800 |
commit | c689d75c27c9fb0a0b3ae05fc75d38671055cd8e (patch) | |
tree | 15d643a655f1aa0d2c62af3065262601d6e682ab | |
parent | be3d9990635fa31e4110285842b1ca98ed4ce53c (diff) | |
download | samba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.tar.gz samba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.tar.bz2 samba-c689d75c27c9fb0a0b3ae05fc75d38671055cd8e.zip |
don't return 0 on error - bad for scripts
-rw-r--r-- | source3/utils/smbcacls.c | 2 |
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); |