Module: ngircd.git Branch: master Commit: 891dbd2acc59a6d9ff6dd8a5b12e91f5a8fa20ed URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=891db...
Author: Alexander Barton alex@barton.de Date: Fri May 24 22:40:23 2013 +0200
"IncludeDir" can't be overwritten by included files
---
src/ngircd/conf.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index d7e1a15..c08183d 100644 --- 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);
ngircd-commits@lists.barton.de