- Properly expands ~ characters in data.location

This commit is contained in:
Paul Beckingham
2008-07-09 22:56:39 -04:00
parent ec8da0baaa
commit 2150642f9d
5 changed files with 44 additions and 2 deletions

View File

@@ -279,7 +279,7 @@ void handleVersion (Config& conf)
"file."
<< std::endl;
if (access (conf.get ("data.location").c_str (), X_OK))
if (access (expandPath (conf.get ("data.location")).c_str (), X_OK))
std::cout << "Configuration error: data.location contains a directory name"
" that doesn't exist, or is unreadable."
<< std::endl;