summaryrefslogtreecommitdiff
path: root/source/lib/sharesec.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-27 11:15:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:56 -0500
commit724c6fa337bb535e1b97d0452c2489f58339a3bf (patch)
treec77ef2cf4f953790ab287e25e5584949c4857cab /source/lib/sharesec.c
parent08d23a1c4f136427ee6f72fc02fb030a13056495 (diff)
downloadsamba-724c6fa337bb535e1b97d0452c2489f58339a3bf.tar.gz
r21987: split tdb_prs_*() functions in version which take a keystr and a TDB_DATA key
metze
Diffstat (limited to 'source/lib/sharesec.c')
-rw-r--r--source/lib/sharesec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c
index 7a6a4255590..c4704dfc125 100644
--- a/source/lib/sharesec.c
+++ b/source/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 {