mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
Move ChangeDir() and MakeDir() from CUtils to CDir
Those function were not modified. Only change is the name. Those *Dir() functions really made no sense in CUtils when there is FileUtils stuff. They really fit much better into here. I'll bet they'll make new friends fast. I mean, why shouldn't they? Uhm... sorry ;) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1044 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -397,7 +397,7 @@ void CZNC::InitDirs(const CString& sArgvPath, const CString& sDataDir) {
|
||||
|
||||
// If the bin was not ran from the current directory, we need to add that dir onto our cwd
|
||||
CString::size_type uPos = sArgvPath.rfind('/');
|
||||
m_sCurPath = (uPos == CString::npos) ? CString(buf) : CUtils::ChangeDir(buf, sArgvPath.substr(0, uPos), "");
|
||||
m_sCurPath = (uPos == CString::npos) ? CString(buf) : CDir::ChangeDir(buf, sArgvPath.substr(0, uPos), "");
|
||||
|
||||
// Try to set the user's home dir, default to binpath on failure
|
||||
home = getenv("HOME");
|
||||
|
||||
Reference in New Issue
Block a user