From: Adam Dickmeiss Date: Tue, 3 Jul 2012 10:54:46 +0000 (+0200) Subject: Use base path for resolving rpn2cql file name. X-Git-Tag: v1.3.38~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=55a63876b5d793644526ffbcae18f71884932303;p=metaproxy-moved-to-github.git Use base path for resolving rpn2cql file name. --- 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();