[SSSD] [PATCH] Properly detect negative/invalid values for the minId and maxId

Simo Sorce ssorce at redhat.com
Thu Sep 10 16:00:05 UTC 2009


On Thu, 2009-09-10 at 11:12 -0400, Stephen Gallagher wrote:
> Now we'll first read the values in as a string and parse them to
> ensure
> that they represent positive numbers.

Given conversion from string to integer is not a complex business,
shouldn't we just retrieve the entry as a string and do the conversion
in a function that returns the enum and saves the integer (if available)
in a variable ?

That would save us searching the message twice to get the same string.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the sssd-devel mailing list