mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-22 13:26:52 +00:00
fix "Can't get user information for UID" error message
This commit is contained in:
parent
04169f34cf
commit
c06c815c28
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: ngircd.c,v 1.98 2005/06/17 20:35:45 fw Exp $";
|
static char UNUSED id[] = "$Id: ngircd.c,v 1.99 2005/06/17 23:13:41 fw Exp $";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
@ -789,12 +789,14 @@ NGIRCd_Init( bool NGIRCd_NoDaemon )
|
|||||||
/* Change working directory to home directory of the user
|
/* Change working directory to home directory of the user
|
||||||
* we are running as (only when running in daemon mode and not in chroot) */
|
* we are running as (only when running in daemon mode and not in chroot) */
|
||||||
|
|
||||||
if ( pwd && !NGIRCd_NoDaemon ) {
|
if ( pwd ) {
|
||||||
|
if (!NGIRCd_NoDaemon ) {
|
||||||
if( chdir( pwd->pw_dir ) == 0 )
|
if( chdir( pwd->pw_dir ) == 0 )
|
||||||
Log( LOG_DEBUG, "Changed working directory to \"%s\" ...", pwd->pw_dir );
|
Log( LOG_DEBUG, "Changed working directory to \"%s\" ...", pwd->pw_dir );
|
||||||
else
|
else
|
||||||
Log( LOG_ERR, "Can't change working directory to \"%s\": %s",
|
Log( LOG_ERR, "Can't change working directory to \"%s\": %s",
|
||||||
pwd->pw_dir, strerror( errno ));
|
pwd->pw_dir, strerror( errno ));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log( LOG_ERR, "Can't get user informaton for UID %d!?", Conf_UID );
|
Log( LOG_ERR, "Can't get user informaton for UID %d!?", Conf_UID );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user