Fixed mbstat wait timeout

This commit is contained in:
Michiel Broek 2002-05-04 18:14:50 +00:00
parent f4dbd6a0b2
commit e3961d8449

View File

@ -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);