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 | 724c6fa337bb535e1b97d0452c2489f58339a3bf (patch) | |
tree | c77ef2cf4f953790ab287e25e5584949c4857cab /source/printing/nt_printing.c | |
parent | 08d23a1c4f136427ee6f72fc02fb030a13056495 (diff) | |
download | samba-724c6fa337bb535e1b97d0452c2489f58339a3bf.tar.gz samba-724c6fa337bb535e1b97d0452c2489f58339a3bf.tar.xz samba-724c6fa337bb535e1b97d0452c2489f58339a3bf.zip |
r21987: split tdb_prs_*() functions in version which take a keystr and a TDB_DATA key
metze
Diffstat (limited to 'source/printing/nt_printing.c')
-rw-r--r-- | source/printing/nt_printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 78ba9862148..967ea883a93 100644 --- a/source/printing/nt_printing.c +++ b/source/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); |