summaryrefslogtreecommitdiff
path: root/source3/printing
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
commita806037b8713cdf0ae32f7091f53819393132a0b (patch)
tree07f44ea36f16a70e51125d29072f93799069a7e1 /source3/printing
parent4b0c9a0084f539e344e743bb1f30d1565d2cca1d (diff)
downloadsamba-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/printing')
-rw-r--r--source3/printing/nt_printing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 78ba986214..967ea883a9 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -5159,7 +5159,7 @@ WERROR nt_printing_setsec(const char *sharename, SEC_DESC_BUF *secdesc_ctr)
key = make_printers_secdesc_tdbkey( sharename );
- if (tdb_prs_store(tdb_printers, key, &ps)==0) {
+ if (tdb_prs_store_bystring(tdb_printers, key, &ps)==0) {
status = WERR_OK;
} else {
DEBUG(1,("Failed to store secdesc for %s\n", sharename));
@@ -5280,7 +5280,7 @@ BOOL nt_printing_getsec(TALLOC_CTX *ctx, const char *sharename, SEC_DESC_BUF **s
key = make_printers_secdesc_tdbkey( sharename );
- if (tdb_prs_fetch(tdb_printers, key, &ps, ctx)!=0 ||
+ if (tdb_prs_fetch_bystring(tdb_printers, key, &ps, ctx)!=0 ||
!sec_io_desc_buf("nt_printing_getsec", secdesc_ctr, &ps, 1)) {
prs_mem_free(&ps);
@@ -5297,7 +5297,7 @@ BOOL nt_printing_getsec(TALLOC_CTX *ctx, const char *sharename, SEC_DESC_BUF **s
sizeof(SEC_DESC_BUF), ctx, MARSHALL);
if (sec_io_desc_buf("nt_printing_getsec", secdesc_ctr, &ps, 1)) {
- tdb_prs_store(tdb_printers, key, &ps);
+ tdb_prs_store_bystring(tdb_printers, key, &ps);
}
prs_mem_free(&ps);