commit - aec535c8b68cd0c1f8c892aad11ca6f80f354215
commit + 04169f34cf23d382c8a420107309daea2b52d999
blob - 41c823bcdbc0edcbec6035a08cb289dad81411a4
blob + 674767769a77e8021610b65618f3632136d2f8e9
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
#include "portab.h"
-static char UNUSED id[] = "$Id: ngircd.c,v 1.97 2005/06/17 18:22:45 fw Exp $";
+static char UNUSED id[] = "$Id: ngircd.c,v 1.98 2005/06/17 20:35:45 fw Exp $";
/**
* @file
}
/* Change working directory to home directory of the user
- * we are running as (when not running chroot()'ed!) */
+ * we are running as (only when running in daemon mode and not in chroot) */
- if ( pwd ) {
+ if ( pwd && !NGIRCd_NoDaemon ) {
if( chdir( pwd->pw_dir ) == 0 )
Log( LOG_DEBUG, "Changed working directory to \"%s\" ...", pwd->pw_dir );
else