metaproxy program: set file path to "." if empty
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 25 Jul 2011 11:04:27 +0000 (13:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 25 Jul 2011 11:04:27 +0000 (13:04 +0200)
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

index 9d61db1..16512e7 100644 (file)
@@ -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;