summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-25 22:50:49 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-25 22:50:49 +0000
commitfed2216d997d57c2931fd59946c6d48bc9544311 (patch)
tree2da8717933959a63b20d128ed08342facc02c5a9 /src/modules.cpp
parent52e139da19b6b1aed81e6d1c3ee3ad8712ce2273 (diff)
Remove the ServerConfig::DirValid check that breaks symlinks
This was included as a security check to prevent symlink attacks, but this is no longer useful; anyone who can exploit the attack now can just modify the ircd itself. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11390 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 5d61812c0..71f4d7524 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -397,13 +397,6 @@ bool ModuleManager::Load(const char* filename)
snprintf(modfile,MAXBUF,"%s/%s",Instance->Config->ModPath,filename);
std::string filename_str = filename;
- if (!ServerConfig::DirValid(modfile))
- {
- LastModuleError = "Module " + std::string(filename) + " is not in the module directory that i am configured to look in (is "+Instance->Config->ModPath+" really a symlink?)";
- Instance->Logs->Log("MODULE", DEFAULT, LastModuleError);
- return false;
- }
-
if (!ServerConfig::FileExists(modfile))
{
LastModuleError = "Module file could not be found: " + filename_str;