#ifdef SNIFFER
NGIRCd_Sniffer = false;
#endif
- strlcpy(NGIRCd_ConfFile, SYSCONFDIR, sizeof(NGIRCd_ConfFile));
- strlcat(NGIRCd_ConfFile, CONFIG_FILE, sizeof(NGIRCd_ConfFile));
Fill_Version();
Log(LOG_ERR, "Can't change group ID to %s(%u): %s!",
grp ? grp->gr_name : "?", Conf_GID,
strerror(real_errno));
- if (real_errno != EPERM)
+ if (real_errno != EPERM && real_errno != EINVAL)
goto out;
}
#ifdef HAVE_SETGROUPS
Log(LOG_ERR, "Can't change user ID to %s(%u): %s!",
pwd ? pwd->pw_name : "?", Conf_UID,
strerror(real_errno));
- if (real_errno != EPERM)
+ if (real_errno != EPERM && real_errno != EINVAL)
goto out;
}
}
initialized = true;
/* Normally a child process is forked which isn't any longer
- * connected to ther controlling terminal. Use "--nodaemon"
+ * connected to the controlling terminal. Use "--nodaemon"
* to disable this "daemon mode" (useful for debugging). */
if (!NGIRCd_NoDaemon) {
pid = fork();
"Can't change working directory to \"%s\": %s!",
pwd->pw_dir, strerror(errno));
} else
- Log(LOG_ERR, "Can't get user informaton for UID %d!?", Conf_UID);
+ Log(LOG_ERR, "Can't get user information for UID %d!?", Conf_UID);
return true;
out: