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

bundle agent rm_rf_depth from stdlib does not remove the base dir

    XMLWordPrintable

    Details

    • Platform:
      Linux

      Description

      The inline documentation indicates that the base directory itself should be removed, but it is not.

      <pre>
      [root@hub masterfiles]# cf-agent -KIb service_catalogue -f ./promises.cf
      2015-02-25T21:34:13+0000 info: Using command line specified bundlesequence
      2015-02-25T21:34:13+0000 info: /default/service_catalogue/methods/''/default/rm_rf_depth/files/'/tmp/delete'[0]: Deleted file '/tmp/delete/file'
      [root@hub masterfiles]# ls /tmp/delete/
      [root@hub masterfiles]# cf-agent -KIb service_catalogue -f ./promises.cf
      2015-02-25T21:34:24+0000 info: Using command line specified bundlesequence
      [root@hub masterfiles]# ls -al /tmp/delete/
      total 8
      drwxr-xr-x. 2 root root 4096 Feb 25 21:34 .
      drwxrwxrwt. 5 root root 4096 Feb 25 21:33 ..
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel