"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "icinga-app/icinga.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

icinga.cpp  (icinga2-2.11.5):icinga.cpp  (icinga2-2.12.0)
skipping to change at line 640 skipping to change at line 640
if (setuid(pw->pw_uid) < 0) { if (setuid(pw->pw_uid) < 0) {
Log(LogCritical, "cli") Log(LogCritical, "cli")
<< "setuid() failed with error co de " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\""; << "setuid() failed with error co de " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
Log(LogCritical, "cli") Log(LogCritical, "cli")
<< "Please re-run this command as a privileged user or using the \"" << user << "\" account."; << "Please re-run this command as a privileged user or using the \"" << user << "\" account.";
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }
} }
Process::InitializeSpawnHelper();
#endif /* _WIN32 */ #endif /* _WIN32 */
std::vector<std::string> args; std::vector<std::string> args;
if (vm.count("arg")) if (vm.count("arg"))
args = vm["arg"].as<std::vector<std::string> >(); args = vm["arg"].as<std::vector<std::string> >();
if (static_cast<int>(args.size()) < command->GetMinArguments()) { if (static_cast<int>(args.size()) < command->GetMinArguments()) {
Log(LogCritical, "cli") Log(LogCritical, "cli")
<< "Too few arguments. Command needs at least " < < command->GetMinArguments() << "Too few arguments. Command needs at least " < < command->GetMinArguments()
<< " argument" << (command->GetMinArguments() != 1 ? "s" : "") << "."; << " argument" << (command->GetMinArguments() != 1 ? "s" : "") << ".";
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)