"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cf-serverd/cf-serverd.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-serverd.c  (cfengine-3.15.3):cf-serverd.c  (cfengine-3.15.4)
skipping to change at line 57 skipping to change at line 57
} while (fd == STDIN_FILENO || } while (fd == STDIN_FILENO ||
fd == STDOUT_FILENO || fd == STDOUT_FILENO ||
fd == STDERR_FILENO); fd == STDERR_FILENO);
close(fd); close(fd);
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);
Policy *policy = SelectAndLoadPolicy(config, ctx, false, false); Policy *policy = SelectAndLoadPolicy(config, ctx, false, false);
if (!policy) if (!policy)
{ {
Log(LOG_LEVEL_ERR, "Error reading CFEngine policy. Exiting..."); Log(LOG_LEVEL_ERR, "Error reading CFEngine policy. Exiting...");
DoCleanupAndExit(EXIT_FAILURE); DoCleanupAndExit(EXIT_FAILURE);
} }
GenericAgentPostLoadInit(ctx); GenericAgentPostLoadInit(ctx);
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

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