tdb_compat: use tdb_open_compat.
[ira/wip.git] / testsuite / printing / psec.c
index 243861499669d082d11be4be5a867b1411421d0b..59205446d05e0c027b715ef5903be1b08138caba 100644 (file)
@@ -171,7 +171,7 @@ int psec_getsec(char *printer)
        slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", 
                 lp_lockdir());
 
-       tdb = tdb_open(tdb_path, 0, 0, O_RDONLY, 0600);
+       tdb = tdb_open_compat(tdb_path, 0, 0, O_RDONLY, 0600, NULL, NULL);
 
        if (!tdb) {
                printf("psec: failed to open nt drivers database: %s\n",
@@ -275,7 +275,7 @@ int psec_setsec(char *printer)
        slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", 
                 lp_lockdir());
 
-       tdb = tdb_open(tdb_path, 0, 0, O_RDWR, 0600);
+       tdb = tdb_open_compat(tdb_path, 0, 0, O_RDWR, 0600, NULL, NULL);
 
        if (!tdb) {
                printf("psec: failed to open nt drivers database: %s\n",