From 1f3774634b122e4ace102c8643f6d9281e3a20de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Nov 2015 19:06:27 +0200 Subject: Make root configuration option notation to be the same as of AP_ROOT configuration variable --- brep/package-search.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'brep/package-search.cxx') diff --git a/brep/package-search.cxx b/brep/package-search.cxx index 1617e58..6a349b0 100644 --- a/brep/package-search.cxx +++ b/brep/package-search.cxx @@ -65,7 +65,10 @@ namespace brep // server process. // static const size_t rp (options_->results_on_page ()); - static const dir_path& rt (options_->root ()); + static const dir_path& rt ( + options_->root ().empty () + ? dir_path ("/") + : options_->root ()); params::package_search pr; -- cgit v1.1