From f8af919225fa96e51ab1c05b8300dc1b8e5fad6e Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 21 Jun 2011 11:27:46 +0200 Subject: [PATCH] xadump: remove ref to my home dir --- src/query/xadump.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/query/xadump.cpp b/src/query/xadump.cpp index de80c827..32b92526 100644 --- a/src/query/xadump.cpp +++ b/src/query/xadump.cpp @@ -23,6 +23,8 @@ #include #include +#include "pathut.h" + #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ @@ -110,7 +112,7 @@ static void sigcleanup(int sig) int main(int argc, char **argv) { - string dbdir = "/home/dockes/.recoll/xapiandb"; + string dbdir = path_cat(path_home(), ".recoll/xapiandb"); string outencoding = "ISO8859-1"; int docid = 1; string aterm;