Project

General

Profile

Actions

Bug #4851

closed

The command used to have a list of promises from ncf will lead to "Buffer exceeded 8192 bytes in exec" if ncf contains more than 125 files

Added by Nicolas PERRON almost 10 years ago. Updated almost 2 years ago.

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

Description

The command used into CFEngine (execresult of a find which return a list of files) have a list of promises from ncf will lead to "Buffer exceeded 8192 bytes in exec" if ncf contains more than 125 files.

As a first workaround is to split this command in two:

"ncf_inputs" slist => splistring(exec("/usr/bin/find /var/rudder/ncf -name '*.cf' -not -name 'promises.cf'","noshell"),"\n",10000);

will become:

"ncf_common_inputs" slist => splistring(exec("/usr/bin/find /var/rudder/ncf/common -name '*.cf' -not -name 'promises.cf'","noshell"),"\n",10000);
"ncf_local_inputs" slist => splistring(exec("/usr/bin/find /var/rudder/ncf/local -name '*.cf' -not -name 'promises.cf'","noshell"),"\n",10000);
Actions

Also available in: Atom PDF