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

cf-execd calls cf-agent with wrong class syntax (Fix included)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: cf-execd
    • Labels:
      None

      Description

      cf-execd exec cf-agent with the option -Dfrom_cfexecd:scheduled_run. This is wrong! The colon has to be a comma.

      FIX:

          • src/cf-execd-runner.c.orig 2013-02-14 10:45:01.604445986 +0100
          • src/cf-execd-runner.c 2013-02-14 10:45:10.992717705 +0100
            ***************
          • 103,109 ****
            "\"%s/%s\" -f failsafe.cf "
            "&& \"%s/%s\" -Dfrom_cfexecd%s",
            CFWORKDIR, twin_exists ? TwinFilename() : AgentFilename(),
            ! CFWORKDIR, AgentFilename(), scheduled_run ? ":scheduled_run" : "");
            }

      void LocalExec(const ExecConfig *config)
      — 103,109 ----
      "\"%s/%s\" -f failsafe.cf "
      "&& \"%s/%s\" -Dfrom_cfexecd%s",
      CFWORKDIR, twin_exists ? TwinFilename() : AgentFilename(),
      ! CFWORKDIR, AgentFilename(), scheduled_run ? ",scheduled_run" : "");
      }

      void LocalExec(const ExecConfig *config)

        Attachments

          Activity

            People

            Assignee:
            a10025 Volker Hilsheimer (Inactive)
            Reporter:
            holm J├╝rgen Holm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: