Good point.  Is it at least possible for cf-agent to notice when a value 
such as this (really any integer) overflows, and at least print a 
warning about it in the log?  In fact, I'd actually prefer that it abort 
-- I'd rather cf-agent not do anything at all than to attempt to repair 
promises based on overflowing variables.

Paul Krizak                         7171 Southwest Pkwy MS B200.3A
MTS Systems Engineer                Austin, TX  78735
Advanced Micro Devices              Desk:  (512) 602-8775
Linux/Unix Systems Engineering      Cell:  (512) 791-0686
Global IT Infrastructure            Fax:   (512) 602-0468

On 08/30/2011 09:40 AM, Mark Burgess wrote:
> On 08/30/2011 06:21 PM, Paul Krizak wrote:
>> This sounds like a bug...shouldn't the syntax parser prevent you from
>> setting the value larger than an unsigned int?  An arbitrary "999999999"
>> or whatever isn't very useful.
>>
>> Paul Krizak                         7171 Southwest Pkwy MS B200.3A
>> MTS Systems Engineer                Austin, TX  78735
>> Advanced Micro Devices              Desk:  (512) 602-8775
>> Linux/Unix Systems Engineering      Cell:  (512) 791-0686
>> Global IT Infrastructure            Fax:   (512) 602-0468
>>
>> On 08/30/2011 12:45 AM, Nicolas Charles wrote:
>
> There is no such thing really as a universal limit on this size. What if
> half your machines are 64 bit
> and 32 bit, or 16 bit, or 8 bit phones..... It is only a protection
> against the simplest of stupidities ;-)
>
> M
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to