[SCM] Samba Shared Repository - branch master updated - c689d75c27c9fb0a0b3ae05fc75d38671055cd8e

Jeremy Allison jra at samba.org
Sat Dec 13 19:31:56 GMT 2008


The branch, master has been updated
       via  c689d75c27c9fb0a0b3ae05fc75d38671055cd8e (commit)
      from  be3d9990635fa31e4110285842b1ca98ed4ce53c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c689d75c27c9fb0a0b3ae05fc75d38671055cd8e
Author: Herb Lewis <herb at samba.org>
Date:   Sat Dec 13 11:31:20 2008 -0800

    don't return 0 on error - bad for scripts

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/smbcacls.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 1bfc475..f7f1272 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);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list