repo: ngircd action: commit revision: path_from: revision_from: 891dbd2acc59a6d9ff6dd8a5b12e91f5a8fa20ed: path_to: revision_to:
commit 891dbd2acc59a6d9ff6dd8a5b12e91f5a8fa20ed Author: Alexander BartonDate: Fri May 24 22:40:23 2013 +0200 "IncludeDir" can't be overwritten by included files diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -1684,6 +1684,12 @@ Handle_OPTIONS(const char *File, int Line, char *Var, char *Arg)
return;
}
if (strcasecmp(Var, "IncludeDir") == 0) {
+ if (Conf_IncludeDir[0]) {
+ Config_Error(LOG_ERR,
+ "%s, line %d: Can't overwrite value of \"IncludeDir\" variable!",
+ File, Line);
+ return;
+ }
len = strlcpy(Conf_IncludeDir, Arg, sizeof(Conf_IncludeDir));
if (len >= sizeof(Conf_IncludeDir))
Config_Error_TooLong(File, Line, Var);
-----END OF PAGE-----