diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-27 07:27:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-27 07:27:21 +0000 |
commit | 7e13ba75444eb82b257a7a3578aa30ae2f52fe1a (patch) | |
tree | d1a9388824ea9ac40c507fde26ee126e5fd76bb8 | |
parent | 9f9a9a69b6660eaa14ff3954c78f8e08ae3b0b87 (diff) | |
download | samba-7e13ba75444eb82b257a7a3578aa30ae2f52fe1a.tar.gz samba-7e13ba75444eb82b257a7a3578aa30ae2f52fe1a.tar.xz samba-7e13ba75444eb82b257a7a3578aa30ae2f52fe1a.zip |
fixed return from nt_printing_init()
-rw-r--r-- | source/printing/nt_printing.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 90271333e8a..9572ec334e9 100644 --- a/source/printing/nt_printing.c +++ b/source/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(); |