/*
- * $Id: cache_cf.cc,v 1.506 2007/04/06 12:15:51 serassio Exp $
+ * $Id: cache_cf.cc,v 1.507 2007/04/11 22:57:34 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
defaults_if_none();
+ /*
+ * We must call configDoConfigure() before leave_suid() because
+ * configDoConfigure() is where we turn username strings into
+ * uid values.
+ */
+ configDoConfigure();
+
if (!Config.chroot_dir) {
leave_suid();
_db_init(Config.Log.log, Config.debugOptions);
enter_suid();
}
- configDoConfigure();
-
if (opt_send_signal == -1) {
manager.registerAction("config",
"Current Squid Configuration",
/*
- * $Id: debug.cc,v 1.99 2006/08/28 10:11:10 serassio Exp $
+ * $Id: debug.cc,v 1.100 2007/04/11 22:57:34 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
if (debug_log && debug_log != stderr)
fclose(debug_log);
+ assert(geteuid() != 0);
debug_log = fopen(logfile, "a+");
if (!debug_log) {