Output to stderror when zmu can't read zm.conf

This commit is contained in:
Andrew Bauer 2014-12-10 17:54:09 -06:00
parent ed61d2b925
commit 62b75808b3
1 changed files with 6 additions and 0 deletions

View File

@ -138,6 +138,12 @@ bool ValidateAccess( User *user, int mon_id, int function )
int main( int argc, char *argv[] )
{
if ( access(ZM_CONFIG, R_OK) != 0 )
{
fprintf( stderr, "Can't open %s: %s\n", ZM_CONFIG, strerror(errno) );
exit( -1 );
}
self = argv[0];
srand( getpid() * time( 0 ) );