From: Adam Dickmeiss Date: Mon, 25 Jul 2011 11:04:27 +0000 (+0200) Subject: metaproxy program: set file path to "." if empty X-Git-Tag: v1.2.10~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=8686feb1ea052b98b592e1d12ed4bb3ac2528c13;p=metaproxy-moved-to-github.git 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). --- 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;