X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=source3%2Flib%2Fsharesec.c;h=33141a967174d17f0e039b22137387ae1f1f4698;hb=fcdfff1cc8c1214cbce1fdd863b1ede970234121;hp=3d9e6083874431a9c08b536ea91690f90526bf20;hpb=d20f88c60302b9af21b3a04e1ebc536a0e0c0e36;p=kai%2Fsamba-autobuild%2F.git diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 3d9e6083874..33141a96717 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; }