diff options
author | Michael Adam <obnox@samba.org> | 2011-08-25 00:36:05 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:57 +0200 |
commit | 8b4dd99dae73462e019d160c94b9a1e92f30eec4 (patch) | |
tree | 1ad033c2ec563852e1988316fd14a7fd9337bacb /source3/passdb/machine_sid.c | |
parent | a91f06a7226812ec5725b05dede78c9f89e315b5 (diff) | |
download | samba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.tar.gz samba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.tar.xz samba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.zip |
s3:passdb: convert machine_sid to use dbwrap wrapper functions only
Avoid direct use of the db_record and db_context structs.
Diffstat (limited to 'source3/passdb/machine_sid.c')
-rw-r--r-- | source3/passdb/machine_sid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c index 458ffc619dc..b242cff6e61 100644 --- a/source3/passdb/machine_sid.c +++ b/source3/passdb/machine_sid.c @@ -204,16 +204,16 @@ struct dom_sid *get_global_sam_sid(void) smb_panic("could not open secrets db"); } - if (db->transaction_start(db) != 0) { + if (dbwrap_transaction_start(db) != 0) { smb_panic("could not start transaction on secrets db"); } if (!(global_sam_sid = pdb_generate_sam_sid())) { - db->transaction_cancel(db); + dbwrap_transaction_cancel(db); smb_panic("could not generate a machine SID"); } - if (db->transaction_commit(db) != 0) { + if (dbwrap_transaction_commit(db) != 0) { smb_panic("could not start commit secrets db"); } |