summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 21:48:02 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 21:48:02 +0000
commitfcfb142828942033a923730ea7a1b5bfa9ef7f78 (patch)
tree853e044566410cc5c8f64ec79c79a4e61e170b33
parentb5944899a98a6cc0bae7bff0fe195b7e550e26bb (diff)
Remove darwin hax from 1.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7526 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/helperfuncs.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 612658d20..0bcee0711 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -450,11 +450,7 @@ void InspIRCd::OpenLog(char** argv, int argc)
{
if (Config->logpath.empty())
{
-#ifndef DARWIN
Config->logpath = Config->MyDir + "/ircd.log";
-#else
- Config->logpath = "/var/log/ircd.log";
-#endif
}
Config->log_file = fopen(Config->logpath.c_str(),"a+");
@@ -475,17 +471,10 @@ void InspIRCd::OpenLog(char** argv, int argc)
void InspIRCd::CheckRoot()
{
-#ifndef DARWIN
if (geteuid() == 0)
{
printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n");
this->Log(DEFAULT,"Cant start as root");
-#else
- if (geteuid() != 16)
- {
- printf("WARNING!!! You are not running inspircd as the ircdaemon user!!! YOU CAN NOT DO THIS!!!\n\n");
- this->Log(DEFAULT,"Must start as user ircdaemon");
-#endif
Exit(EXIT_STATUS_ROOT);
}
}