Merge pull request #627 from knnniggett/zmu

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

Simple enough.
This commit is contained in:
Isaac Connor 2014-12-11 10:08:21 -05:00
commit 47bac3a104
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 ) );