freebsd-ports/www/dfileserver/files/patch-src_CPathResolver.cxx
Rodrigo Osorio 512c79437f Fix C++ issues for 12.0
- Unixify the files using dos2unix
- Add patches to fix the C++ issues in the code
- Dump PORTREVISION
2018-07-03 09:55:25 +00:00

11 lines
371 B
C++

--- src/CPathResolver.cxx.orig 2018-07-02 11:45:26 UTC
+++ src/CPathResolver.cxx
@@ -100,7 +100,7 @@ CPathResolver::CPathResolver( string Con
mPaths = new SPathNode();
ifstream Config( ConfigFile.c_str(), ios::in );
- if( Config == NULL ) throw( (exn_t)EXN_IO );
+ if( ! Config.is_open() ) throw( (exn_t)EXN_IO );
while( !Config.eof() ) {
string Fake, Real;