preprocessor: config file: if on Windows machine and operatingSystem is empty, then check to see if password or remoteDrive is empty. otherwise, don't check

issue#70
Houtan Bastani 2013-05-30 15:29:27 +02:00
parent feb6147467
commit 55de45a0bb
1 changed files with 11 additions and 8 deletions

View File

@ -517,15 +517,18 @@ ConfigFile::checkPass(WarningConsolidation &warnings) const
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
#if defined(_WIN32) || defined(__CYGWIN32__) #if defined(_WIN32) || defined(__CYGWIN32__)
if (it->second->password.empty()) if (it->second->operatingSystem.empty())
{ {
cerr << "ERROR (node " << it->first << "): the Password option must be passed under Windows for every remote node." << endl; if (it->second->password.empty())
exit(EXIT_FAILURE); {
} cerr << "ERROR (node " << it->first << "): the Password option must be passed under Windows for every remote node." << endl;
if (it->second->remoteDrive.empty()) exit(EXIT_FAILURE);
{ }
cerr << "ERROR (node " << it->first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl; if (it->second->remoteDrive.empty())
exit(EXIT_FAILURE); {
cerr << "ERROR (node " << it->first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl;
exit(EXIT_FAILURE);
}
} }
#endif #endif
if (it->second->remoteDirectory.empty()) if (it->second->remoteDirectory.empty())