summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 90271333e8..9572ec334e 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -35,13 +35,16 @@ static TDB_CONTEXT *tdb; /* used for driver files */
/****************************************************************************
open the NT printing tdb
****************************************************************************/
-int nt_printing_init(void)
+BOOL nt_printing_init(void)
{
static pid_t local_pid;
if (tdb && local_pid == sys_getpid()) return True;
tdb = tdb_open(lock_path("ntdrivers.tdb"), 0, 0, O_RDWR|O_CREAT, 0600);
+ if (!tdb) {
DEBUG(0,("Failed to open nt drivers database\n"));
+ return False;
+ }
local_pid = sys_getpid();