svn commit: samba r5795 - in trunk/source/printing: .
gd at samba.org
gd at samba.org
Tue Mar 15 14:16:42 GMT 2005
Author: gd
Date: 2005-03-15 14:16:41 +0000 (Tue, 15 Mar 2005)
New Revision: 5795
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5795
Log:
Fix file_printerdb_init.
Guenther
Modified:
trunk/source/printing/printerdb_file.c
Changeset:
Modified: trunk/source/printing/printerdb_file.c
===================================================================
--- trunk/source/printing/printerdb_file.c 2005-03-15 12:40:24 UTC (rev 5794)
+++ trunk/source/printing/printerdb_file.c 2005-03-15 14:16:41 UTC (rev 5795)
@@ -188,14 +188,17 @@
TALLOC_CTX *mem_ctx = talloc_init("file_printerdb_init");
int i;
BOOL result = False;
+ char *default_dir;
if (mem_ctx == NULL)
goto done;
- file_root = talloc_asprintf(mem_ctx, "%s/%s", dyn_LIBDIR, "printerdb");
+ default_dir = talloc_asprintf(mem_ctx, "%s/%s", dyn_LOCKDIR, "printerdb");
if ((param != NULL) && (param[0] != '\0')) {
file_root = SMB_STRDUP(param);
+ } else {
+ file_root = SMB_STRDUP(default_dir);
}
if (file_root == NULL) {
More information about the samba-cvs
mailing list