diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-03-27 11:15:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:56 -0500 |
commit | a806037b8713cdf0ae32f7091f53819393132a0b (patch) | |
tree | 07f44ea36f16a70e51125d29072f93799069a7e1 /source3/lib | |
parent | 4b0c9a0084f539e344e743bb1f30d1565d2cca1d (diff) | |
download | samba-a806037b8713cdf0ae32f7091f53819393132a0b.tar.gz samba-a806037b8713cdf0ae32f7091f53819393132a0b.tar.bz2 samba-a806037b8713cdf0ae32f7091f53819393132a0b.zip |
r21987: split tdb_prs_*() functions in version which take a keystr and a TDB_DATA key
metze
(This used to be commit 724c6fa337bb535e1b97d0452c2489f58339a3bf)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sharesec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 7a6a425559..c4704dfc12 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -125,7 +125,7 @@ SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename, slprintf(key, sizeof(key)-1, "SECDESC/%s", servicename); - if (tdb_prs_fetch(share_tdb, key, &ps, ctx)!=0 || + if (tdb_prs_fetch_bystring(share_tdb, key, &ps, ctx)!=0 || !sec_io_desc("get_share_security", &psd, &ps, 1)) { DEBUG(4, ("get_share_security: using default secdesc for %s\n", @@ -167,7 +167,7 @@ BOOL set_share_security(const char *share_name, SEC_DESC *psd) slprintf(key, sizeof(key)-1, "SECDESC/%s", share_name); - if (tdb_prs_store(share_tdb, key, &ps)==0) { + if (tdb_prs_store_bystring(share_tdb, key, &ps)==0) { ret = True; DEBUG(5,("set_share_security: stored secdesc for %s\n", share_name )); } else { |