summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-19 17:10:56 +0000
committerJeremy Allison <jra@samba.org>2002-04-19 17:10:56 +0000
commitbaf8e2e7127eb037264472ceb463cd61d1425a65 (patch)
treef2fba274b0c512c1ab602b67cec9e841e5f5f4d2 /source3
parent2ad27d872c27461c5bb0c037f9861209a63bcc59 (diff)
downloadsamba-baf8e2e7127eb037264472ceb463cd61d1425a65.tar.gz
samba-baf8e2e7127eb037264472ceb463cd61d1425a65.tar.bz2
samba-baf8e2e7127eb037264472ceb463cd61d1425a65.zip
When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).
Jeremy. (This used to be commit 9209d8e718e860e6a58937376cbb437b6b7adbbb)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index a28d95fcc8..d7ac1f49c7 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -55,8 +55,8 @@ BOOL print_backend_init(void)
if (tdb && local_pid == sys_getpid()) return True;
tdb = tdb_open_log(lock_path("printing.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb) {
- DEBUG(0,("print_backend_init: Failed to open printing backend database. Error = [%s]\n",
- tdb_errorstr(tdb)));
+ DEBUG(0,("print_backend_init: Failed to open printing backend database %s\n",
+ lock_path("printing.tdb") ));
return False;
}
local_pid = sys_getpid();