From 11bea492ac7c3cb11d76aacfd2a91607453be6dd Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 30 May 2013 15:30:38 +0200 Subject: [PATCH] preprocessor: config file: if creating windows node from unix machine, check to see if the password or remoteDrive are empty --- preprocessor/ConfigFile.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/preprocessor/ConfigFile.cc b/preprocessor/ConfigFile.cc index 61ebf2e42..72260b34b 100644 --- a/preprocessor/ConfigFile.cc +++ b/preprocessor/ConfigFile.cc @@ -516,6 +516,19 @@ ConfigFile::checkPass(WarningConsolidation &warnings) const cerr << "ERROR (node " << it->first << "): the UserName option must be passed for every remote node." << endl; exit(EXIT_FAILURE); } + if (it->second->operatingSystem.compare("windows") == 0) + { + if (it->second->password.empty()) + { + cerr << "ERROR (node " << it->first << "): the Password option must be passed under Windows for every remote node." << endl; + exit(EXIT_FAILURE); + } + if (it->second->remoteDrive.empty()) + { + cerr << "ERROR (node " << it->first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl; + exit(EXIT_FAILURE); + } + } #if defined(_WIN32) || defined(__CYGWIN32__) if (it->second->operatingSystem.empty()) {