fout << "static void" << std::endl <<
"default_line(const char *s)" << std::endl <<
"{" << std::endl <<
- " LOCAL_ARRAY(char, tmp_line, BUFSIZ);" << std::endl <<
- " xstrncpy(tmp_line, s, BUFSIZ);" << std::endl <<
- " xstrncpy(config_input_line, s, BUFSIZ);" << std::endl <<
+ " int len = strlen(s) +1;" << std::endl <<
+ " char *tmp_line = xstrndup(s, len);" << std::endl <<
+ " ProcessMacros(tmp_line, len);" << std::endl <<
+ " xstrncpy(config_input_line, tmp_line, len);" << std::endl <<
" config_lineno++;" << std::endl <<
" parse_line(tmp_line);" << std::endl <<
+ " xfree(tmp_line);" << std::endl <<
"}" << std::endl << std::endl;
fout << "static void" << std::endl <<
"default_all(void)" << std::endl <<
mode_t old_umask;
char buf[32];
+ debugs(50, DBG_IMPORTANT, "creating PID file: " << Config.pidFilename);
+
if ((f = Config.pidFilename) == NULL)
return;
removePidFile()
{
if (Config.pidFilename && strcmp(Config.pidFilename, "none") != 0) {
+ debugs(50, DBG_IMPORTANT, "removing PID file: " << Config.pidFilename);
enter_suid();
safeunlink(Config.pidFilename, 0);
leave_suid();