Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-12-01 Thread Mark Burgess
Patch applied to correct the problem as reported. Iain Patterson wrote: > Quoth Mark Burgess, > >> This is probably true, but the case cited in the mail is not a >> limitation of cfengine but the argument "getopt" code in the >> operating system concerned. It is normal that Unix limits to 31 >>

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-30 Thread Mark Burgess
THank you for this analysis. The original bug message did not contain enough context to see this interaction. M Iain Patterson wrote: > Quoth Mark Burgess, > >> This is probably true, but the case cited in the mail is not a >> limitation of cfengine but the argument "getopt" code in the >> oper

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-30 Thread Iain Patterson
Quoth Mark Burgess, This is probably true, but the case cited in the mail is not a limitation of cfengine but the argument "getopt" code in the operating system concerned. It is normal that Unix limits to 31 args, and internally cfengine does the same for consistency. I tried compiling the

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-25 Thread Mark Burgess
Morten Werner Forsbring wrote: > Mark Burgess <[EMAIL PROTECTED]> writes: > >> Pardon me for saying so, but one recalls the story of the patient >> visiting the doctor: "Doctor, doctor, it hurts when I do this." >> >> To which the answer is "Then don't do that!" > > I don't agree with your comp

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-25 Thread Morten Werner Forsbring
Mark Burgess <[EMAIL PROTECTED]> writes: > Pardon me for saying so, but one recalls the story of the patient > visiting the doctor: "Doctor, doctor, it hurts when I do this." > > To which the answer is "Then don't do that!" I don't agree with your comparison here, but ok. In my opinion a program

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-25 Thread Mark Burgess
Pardon me for saying so, but one recalls the story of the patient visiting the doctor: "Doctor, doctor, it hurts when I do this." To which the answer is "Then don't do that!" Can anyone provide an example of a case in which one need to approach this number of arguments? M Morten Werner Forsbri

Bug#448139: cfagent crashes with a segmentation fault when 31+ arguments are supplied

2007-11-24 Thread Morten Werner Forsbring
tags 448139 upstream thanks Hi, here is a bugreport from one of our Debian users. I've confirmed this bug on cfengine version 2.2.2. - Werner Cyril Bouthors <[EMAIL PROTECTED]> writes: > Package: cfengine2 > Version: 2.1.22-2 > Severity: critical > > cfagent crashes with a segmentation fault