Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1667

cf-agent always validating input files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2
    • Component/s: Parsing
    • Labels:
      None
    • Platform:
      Any

      Description

      This puts an unnecessary load on the system, eg teh cf-serverd re-reads every time its configuration file. This is due the fact that we use a different inputdir/masterdir. The message we get is:
      <pre>
      Input file is outside default repository, validating it
      </pre>

      The codes is in libpromises/generic_agent.c is wrong:
      <pre>
      bool IsFileOutsideDefaultRepository(const char *f)

      { return !StringStartsWith(f, GetWorkDir()); }

      </pre>

      Think we must use <pre> GetInputDir() </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              bas Bas van der Vlies
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel