diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-28 11:53:00 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-12 07:53:47 +0200 |
commit | 603421903f7e6687171c1032e032dfc5e88b9abf (patch) | |
tree | de9caee62bc63e3e664b4fcd9d355b3107037206 /source/lib/sharesec.c | |
parent | de1b287f0b44729ed202f49453c12f1e76a3d2bc (diff) | |
download | samba-603421903f7e6687171c1032e032dfc5e88b9abf.tar.gz samba-603421903f7e6687171c1032e032dfc5e88b9abf.tar.xz samba-603421903f7e6687171c1032e032dfc5e88b9abf.zip |
Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
Diffstat (limited to 'source/lib/sharesec.c')
-rw-r--r-- | source/lib/sharesec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c index 3d9e6083874..33141a96717 100644 --- a/source/lib/sharesec.c +++ b/source/lib/sharesec.c @@ -229,10 +229,11 @@ bool set_share_security(const char *share_name, SEC_DESC *psd) goto out; } - if (dbwrap_trans_store(share_db, string_term_tdb_data(key), blob, - TDB_REPLACE) == -1) { - DEBUG(1,("set_share_security: Failed to store secdesc for " - "%s\n", share_name )); + status = dbwrap_trans_store(share_db, string_term_tdb_data(key), blob, + TDB_REPLACE); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(1, ("set_share_security: Failed to store secdesc for " + "%s: %s\n", share_name, nt_errstr(status))); goto out; } |