"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cf-key/cf-key.c" between
cfengine-3.15.3.tar.gz and cfengine-3.15.4.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.

cf-key.c  (cfengine-3.15.3):cf-key.c  (cfengine-3.15.4)
skipping to change at line 41 skipping to change at line 41
#include <files_copy.h> #include <files_copy.h>
#include <files_interfaces.h> #include <files_interfaces.h>
#include <hash.h> #include <hash.h>
#include <keyring.h> #include <keyring.h>
#include <eval_context.h> #include <eval_context.h>
#include <crypto.h> #include <crypto.h>
#include <known_dirs.h> #include <known_dirs.h>
#include <man.h> #include <man.h>
#include <signals.h> #include <signals.h>
#include <string_lib.h> #include <string_lib.h>
#include <file_lib.h> /* FILE_SEPARATOR */
#include <cleanup.h> #include <cleanup.h>
#include <cf-key-functions.h> #include <cf-key-functions.h>
bool SHOWHOSTS = false; /* GLOBAL_A */ bool SHOWHOSTS = false; /* GLOBAL_A */
bool NO_TRUNCATE = false; /* GLOBAL_A */ bool NO_TRUNCATE = false; /* GLOBAL_A */
bool FORCEREMOVAL = false; /* GLOBAL_A */ bool FORCEREMOVAL = false; /* GLOBAL_A */
bool REMOVEKEYS = false; /* GLOBAL_A */ bool REMOVEKEYS = false; /* GLOBAL_A */
bool LICENSE_INSTALL = false; /* GLOBAL_A */ bool LICENSE_INSTALL = false; /* GLOBAL_A */
char LICENSE_SOURCE[MAX_FILENAME] = ""; /* GLOBAL_A */ char LICENSE_SOURCE[MAX_FILENAME] = ""; /* GLOBAL_A */
skipping to change at line 148 skipping to change at line 149
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
SetupSignalsForCfKey(HandleSignalsForAgent); SetupSignalsForCfKey(HandleSignalsForAgent);
GenericAgentConfig *config = CheckOpts(argc, argv); GenericAgentConfig *config = CheckOpts(argc, argv);
EvalContext *ctx = EvalContextNew(); EvalContext *ctx = EvalContextNew();
GenericAgentConfigApply(ctx, config); GenericAgentConfigApply(ctx, config);
GenericAgentDiscoverContext(ctx, config); const char *program_invocation_name = argv[0];
const char *last_dir_sep = strrchr(program_invocation_name, FILE_SEPARATOR);
const char *program_name = (last_dir_sep != NULL ? last_dir_sep + 1 : progra
m_invocation_name);
GenericAgentDiscoverContext(ctx, config, program_name);
if (SHOWHOSTS) if (SHOWHOSTS)
{ {
SetupSignalsForCfKey(handleShowKeysSignal); SetupSignalsForCfKey(handleShowKeysSignal);
ShowLastSeenHosts(!NO_TRUNCATE); ShowLastSeenHosts(!NO_TRUNCATE);
CallCleanupFunctions(); CallCleanupFunctions();
return 0; return 0;
} }
if (print_digest_arg) if (print_digest_arg)
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

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