diff options
| author | Florian Westphal <fw@strlen.de> | 2007-11-15 01:03:01 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2007-11-15 01:03:01 +0000 |
| commit | ad7361dfe06aa023290b4b28347172f4ba7e3ff5 (patch) | |
| tree | 0b1d7768551a99200f7ddc95f621460f8e0a92b1 /src | |
| parent | e47c9d750fc21cea9858cdd90a9386365c8b6978 (diff) | |
| download | ngircd-ad7361dfe06aa023290b4b28347172f4ba7e3ff5.tar.gz ngircd-ad7361dfe06aa023290b4b28347172f4ba7e3ff5.zip | |
if ngircd doesn't run chrooted, it tries to chdir
to the users working directory (as returned by getpwuid()). Failing to chdir to that directory isn't an error; so log with LOG_INFO and prefix the message with "Notice".
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/ngircd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index dd28d7f0..1eb68b4c 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -12,7 +12,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: ngircd.c,v 1.115 2007/04/09 01:24:05 alex Exp $"; +static char UNUSED id[] = "$Id: ngircd.c,v 1.116 2007/11/15 01:03:01 fw Exp $"; /** * @file @@ -797,7 +797,7 @@ NGIRCd_Init( bool NGIRCd_NoDaemon ) if( chdir( pwd->pw_dir ) == 0 ) Log( LOG_DEBUG, "Changed working directory to \"%s\" ...", pwd->pw_dir ); else - Log( LOG_ERR, "Can't change working directory to \"%s\": %s", + Log( LOG_INFO, "Notice: Can't change working directory to \"%s\": %s", pwd->pw_dir, strerror( errno )); } } else { |