diff --git a/mbsebbs/mbstat.c b/mbsebbs/mbstat.c index 5dd12b49..ef83d16d 100644 --- a/mbsebbs/mbstat.c +++ b/mbsebbs/mbstat.c @@ -256,7 +256,7 @@ int Wait(void) char buf[PATH_MAX]; sprintf(buf, "%s/sema/upsdown", getenv("MBSE_ROOT")); - if (file_exist(buf, R_OK)) + if (file_exist(buf, R_OK) == 0) Waiting = 30; Syslog('+', "Waiting for the BBS to become free, timout %d seconds", Waiting);