projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a5c6b
)
metaproxy program: set file path to "." if empty
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 25 Jul 2011 11:04:27 +0000
(13:04 +0200)
committer
Adam 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
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
9d61db1
..
16512e7
100644
(file)
--- 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;