summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-02-12 05:24:02 +0000
committerGerald Carter <jerry@samba.org>2004-02-12 05:24:02 +0000
commitdf6d2db4ced5586320804950da58a62248db4d56 (patch)
tree31d2871b863a236ebc52b455ee39899c3940eb3c /source3/printing
parenta6a2a696807992e60c905ff28828317fbcbe3913 (diff)
downloadsamba-df6d2db4ced5586320804950da58a62248db4d56.tar.gz
samba-df6d2db4ced5586320804950da58a62248db4d56.tar.bz2
samba-df6d2db4ced5586320804950da58a62248db4d56.zip
merge from old APP_HEAD
* remove corrupt tdb and shutdown (only for printing tdbs, connections, sessionid & locking) * decrement smbd counter in connections.tdb in smb_panic() * various Makefile hack to get things to link 'max smbd processes' looks like it might be broken. The counter KEY is not being set. Will look into that tomorrow. (This used to be commit 6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c
index 0e0fb1b51d..d402aa366f 100644
--- a/source3/printing/printing_db.c
+++ b/source3/printing/printing_db.c
@@ -96,7 +96,8 @@ struct tdb_print_db *get_print_db_byname(const char *printername)
done_become_root = True;
}
- p->tdb = tdb_open_log(printdb_path, 5000, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ p->tdb = tdb_open_ex(printdb_path, 5000, TDB_DEFAULT, O_RDWR|O_CREAT,
+ 0600, smbd_tdb_log);
if (done_become_root)
unbecome_root();