Project

General

Profile

Actions

Bug #5292

closed

The find call used to get all the files to include in the CFEngine run is not usable on AIX

Added by Matthieu CERDA almost 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The current call is defined like this:

    any::
      "ncf_common_inputs" slist => splitstring(execresult("${ncf_find}/common -name '*.cf' -not -name 'promises.cf'", "noshell"), "\n", 10000);
      "ncf_local_inputs"  slist => splitstring(execresult("${ncf_find}/local -name '*.cf' -not -name 'promises.cf'", "noshell"), "\n", 10000);

Maybe it should be instead:

    !aix::
      "ncf_common_inputs" slist => splitstring(execresult("${ncf_find}/common -name '*.cf' -not -name 'promises.cf'", "noshell"), "\n", 10000);
      "ncf_local_inputs"  slist => splitstring(execresult("${ncf_find}/local -name '*.cf' -not -name 'promises.cf'", "noshell"), "\n", 10000);

    aix::
      "ncf_common_inputs" slist => splitstring(execresult("${ncf_find}/common -name '*.cf' | grep -v 'promises.cf'", "useshell"), "\n", 10000);
      "ncf_local_inputs"  slist => splitstring(execresult("${ncf_find}/local -name '*.cf' | grep -v 'promises.cf'", "useshell"), "\n", 10000);

Actions

Also available in: Atom PDF