From 55a63876b5d793644526ffbcae18f71884932303 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 3 Jul 2012 12:54:46 +0200 Subject: [PATCH] Use base path for resolving rpn2cql file name. --- src/filter_zoom.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 5b1f24c..9032bfc 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1262,9 +1262,15 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( } } - cql_transform_t cqlt; + cql_transform_t cqlt = 0; if (sptr->rpn2cql_fname.length()) - cqlt = cql_transform_open_fname(sptr->rpn2cql_fname.c_str()); + { + char fullpath[1024]; + char *cp = yaz_filepath_resolve(sptr->rpn2cql_fname.c_str(), + m_p->file_path.c_str(), 0, fullpath); + if (cp) + cqlt = cql_transform_open_fname(fullpath); + } else cqlt = cql_transform_create(); -- 1.7.10.4