]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: convert dbwrap_store_bystring_upper() from TDB to DBWRAP flags
authorRalph Boehme <slow@samba.org>
Wed, 11 Apr 2018 15:07:54 +0000 (17:07 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:35 +0000 (10:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/printing/printer_list.c
source3/registry/reg_objects.c

index e39c8f2850f483ad808f8781c09119b25fd724f9..74e98ec386532e1368b59eaef7f1afeb6f9ba69f 100644 (file)
@@ -217,7 +217,7 @@ NTSTATUS printer_list_set_printer(TALLOC_CTX *mem_ctx,
                       comment,
                       location);
 
-       status = dbwrap_store_bystring_upper(db, key, data, TDB_REPLACE);
+       status = dbwrap_store_bystring_upper(db, key, data, DBWRAP_REPLACE);
 
 done:
        TALLOC_FREE(key);
index 20556b1a174d9eb55c900448e9f633212c4d9b41..d0c24058ce5da8abbebedf222bd4606a8c3c089b 100644 (file)
@@ -142,7 +142,7 @@ static WERROR regsubkey_ctr_hash_keyname(struct regsubkey_ctr *ctr,
                                                keyname,
                                                make_tdb_data((uint8_t *)&idx,
                                                              sizeof(idx)),
-                                               TDB_REPLACE));
+                                               DBWRAP_REPLACE));
        if (!W_ERROR_IS_OK(werr)) {
                DEBUG(1, ("error hashing new key '%s' in container: %s\n",
                          keyname, win_errstr(werr)));