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

invalid permissions mode is accepted silently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Component/s: Promise type: files
    • Labels:
      None

      Description

      <pre>
      bundle agent main
      {
      files:
      "/tmp/foo"
      create => "true",
      perms => m("22222");
      }

      body perms m
      {
      mode => ${x};
      }
      </pre>

      The above is accepted by the parser and runs with strange results:

      • Ted observed switching to warn-only mode
      • others couldn't replicate that

      Please see @tests/acceptance/10_files/01_create/perms-mode.cf@ for the explicit test that verifies "crazy" modes are silently translated.

        Attachments

          Release management

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jiraadmin Old User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: