summaryrefslogtreecommitdiff
path: root/source3/lib/sharesec.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-28 11:57:54 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:22 +0200
commit16198dc51e8f03d22de73883c0bb6823c464b8c6 (patch)
tree144c5eb5a076b47788e73a6a1d2e47858dcfcbdc /source3/lib/sharesec.c
parentfcdfff1cc8c1214cbce1fdd863b1ede970234121 (diff)
downloadsamba-16198dc51e8f03d22de73883c0bb6823c464b8c6.tar.gz
samba-16198dc51e8f03d22de73883c0bb6823c464b8c6.tar.bz2
samba-16198dc51e8f03d22de73883c0bb6823c464b8c6.zip
Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
Diffstat (limited to 'source3/lib/sharesec.c')
-rw-r--r--source3/lib/sharesec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 33141a9671..471363b4be 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -253,6 +253,7 @@ bool delete_share_security(const char *servicename)
{
TDB_DATA kbuf;
char *key;
+ NTSTATUS status;
if (!(key = talloc_asprintf(talloc_tos(), "SECDESC/%s",
servicename))) {
@@ -260,9 +261,10 @@ bool delete_share_security(const char *servicename)
}
kbuf = string_term_tdb_data(key);
- if (dbwrap_trans_delete(share_db, kbuf) != 0) {
+ status = dbwrap_trans_delete(share_db, kbuf);
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("delete_share_security: Failed to delete entry for "
- "share %s\n", servicename));
+ "share %s: %s\n", servicename, nt_errstr(status)));
return False;
}