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 | 9fb4575047bcbf98dd728eba8f7c7ee341dd5ed7 (patch) | |
tree | aea13942cd395c9d0ddb51c3b7cc5c171e6fc28b /source3 | |
parent | 1f220f50226899b828f18fcf47cea218111aff10 (diff) | |
download | samba-9fb4575047bcbf98dd728eba8f7c7ee341dd5ed7.tar.gz samba-9fb4575047bcbf98dd728eba8f7c7ee341dd5ed7.tar.bz2 samba-9fb4575047bcbf98dd728eba8f7c7ee341dd5ed7.zip |
fixed return from nt_printing_init()
(This used to be commit 7e13ba75444eb82b257a7a3578aa30ae2f52fe1a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 5 |
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(); |