summaryrefslogtreecommitdiff
path: root/source3/lib/sharesec.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-28 11:53:00 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:22 +0200
commitfcdfff1cc8c1214cbce1fdd863b1ede970234121 (patch)
treead50b65a4882ebcb5187305c9b56d61e13eef360 /source3/lib/sharesec.c
parentd20f88c60302b9af21b3a04e1ebc536a0e0c0e36 (diff)
downloadsamba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.gz
samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.bz2
samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.zip
Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
Diffstat (limited to 'source3/lib/sharesec.c')
-rw-r--r--source3/lib/sharesec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 3d9e608387..33141a9671 100644
--- a/source3/lib/sharesec.c
+++ b/source3/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;
}