From 90f3d27affadff9b7b2ba6c5d4014c206e0a178e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 27 Oct 2006 07:13:22 +0000 Subject: Allow relative path on pid file git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5547 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index e0e249963..0dd5745d1 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1279,7 +1279,7 @@ bool ServerConfig::ReadFile(file_cache &F, const char* fname) if((pos = confpath.find("/inspircd.conf")) != std::string::npos) { /* Leaves us with just the path */ - std::string newfile = confpath.substr(0, pos) + std::string("/") + newfile; + std::string newfile = confpath.substr(0, pos) + std::string("/") + fname; file = fopen(newfile.c_str(), "r"); } -- cgit v1.3.1-10-gc9f91