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

Agent is segfaulting with erroneous relative symlink promise.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      RHEL or CentOS
    • Found in version (details):
      Community 3.6.5.

      Description

      With this erroneous code the agent segfaults:

      <pre>
      bundle agent create_link
      {
      meta:
      "tags" slist =>

      {"autorun"};

      vars:
      "link" string => "alink";
      "target" string => "/tmp/dir/afile";

      files:
      "$(link)"
      link_from => linkfrom("$(target)", "relative");
      }
      </pre>

      Correct code is:

      <pre>
      bundle agent create_link
      {
      meta:
      "tags" slist => {"autorun"}

      ;

      vars:
      "link" string => "/tmp/dir/alink";
      "target" string => "/tmp/dir/afile";

      files:
      "$(link)"
      link_from => linkfrom("$(target)", "relative");
      }
      </pre>

      I have included a debug-printout.

      Bernt Jernberg

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              berntjernberg Bernt Jernberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel