From 8686feb1ea052b98b592e1d12ed4bb3ac2528c13 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 25 Jul 2011 13:04:27 +0200 Subject: [PATCH] metaproxy program: set file path to "." if empty This to ensure that yaz_filepath_resolve will find file name if configuration is in current directory (in which case path ends up empty). --- src/metaproxy_prog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 9d61db1..16512e7 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -200,7 +200,8 @@ static int sc_main( ); if (last_p) wrbuf_write(base_path, fname, last_p - fname); - + else + wrbuf_puts(base_path, "."); ret = 0; try { mp::FactoryStatic factory; -- 1.7.10.4