From 9fb4575047bcbf98dd728eba8f7c7ee341dd5ed7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 May 2000 07:27:21 +0000 Subject: fixed return from nt_printing_init() (This used to be commit 7e13ba75444eb82b257a7a3578aa30ae2f52fe1a) --- source3/printing/nt_printing.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/printing') 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(); -- cgit