[SSSD] [PATCH] Use unsigned long for conversion to id_t (sssd 1.2 only)

Stephen Gallagher sgallagh at redhat.com
Tue Oct 19 20:06:22 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/18/2010 03:16 PM, Jakub Hrozek wrote:
> We used strtol() on a number of places to convert into uid_t or gid_t
> from a string representation such as LDAP attribute, but on some
> platforms, unsigned long might be necessary to store big id_t values.
> 
> This patch converts to using strtoul() instead.


It has been discovered that LDAP only supports signed 32-bit integers
for the UID, so there is no need for this patch. No sense in backporting
it, in that case.

- -- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAky9+j0ACgkQeiVVYja6o6O0bgCcDfUDwm6+VmPCMrIAIi1HswFQ
E/UAoJFYnb9hPCLTMAHKYGA10P2O3TjP
=jPiX
-----END PGP SIGNATURE-----



More information about the sssd-devel mailing list