diff --git a/src/zmu.cpp b/src/zmu.cpp index 01ebb7f77..9348012db 100644 --- a/src/zmu.cpp +++ b/src/zmu.cpp @@ -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 ) );