diff options
author | Michael Adam <obnox@samba.org> | 2008-01-17 11:06:32 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-17 16:25:11 +0100 |
commit | 7bfdcbcfdca7c554060808d9b526f6f2fd7472fa (patch) | |
tree | 782ad7d8f143d8b84e23b598ec08c91d59891bc1 /source3 | |
parent | da4ecfc0faed73599412b10d081c86fb748ec0d4 (diff) | |
download | samba-7bfdcbcfdca7c554060808d9b526f6f2fd7472fa.tar.gz samba-7bfdcbcfdca7c554060808d9b526f6f2fd7472fa.tar.bz2 samba-7bfdcbcfdca7c554060808d9b526f6f2fd7472fa.zip |
Use reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().
Rationale: Use reg_api instead of backend functions.
Michael
(This used to be commit f986a708be15dd9b9fc28b9862f64f2d0f94accc)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_winreg_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index 74ee94cf75..939bf723d2 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -1115,7 +1115,7 @@ WERROR _winreg_GetKeySecurity(pipes_struct *p, struct winreg_GetKeySecurity *r) if ( !(key->key->access_granted & STD_RIGHT_READ_CONTROL_ACCESS) ) return WERR_ACCESS_DENIED; - err = regkey_get_secdesc(p->mem_ctx, key->key, &secdesc); + err = reg_getkeysecurity(p->mem_ctx, key, &secdesc); if (!W_ERROR_IS_OK(err)) { return err; } @@ -1161,7 +1161,7 @@ WERROR _winreg_SetKeySecurity(pipes_struct *p, struct winreg_SetKeySecurity *r) return err; } - return regkey_set_secdesc(key->key, secdesc); + return reg_setkeysecurity(key, secdesc); } /******************************************************************* |