From cf3647f7ccaa25a819d7b58645ab0d7887877763 Mon Sep 17 00:00:00 2001 From: crs Date: Thu, 29 Jul 2004 22:09:28 +0000 Subject: [PATCH] Worked around bug in ifstream::operator!() on OS X. --- cmd/synergys/synergys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/synergys/synergys.cpp b/cmd/synergys/synergys.cpp index 6e1b758b..c5c45e51 100644 --- a/cmd/synergys/synergys.cpp +++ b/cmd/synergys/synergys.cpp @@ -814,7 +814,7 @@ loadConfig(const CString& pathname) // load configuration LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname.c_str())); std::ifstream configStream(pathname.c_str()); - if (!configStream) { + if (!configStream.is_open()) { throw XConfigRead("cannot open file"); } configStream >> *ARG->m_config;