[Freeipa-devel] [PATCH] use same regex for user/group names as shadow-utils

Stephen Gallagher sgallagh at redhat.com
Wed Aug 6 17:20:45 UTC 2008


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

Rob Crittenden wrote:
> This patch replaces the patch of the same name and the "fix validation
> return types" patch(es).
> 
> Turns out my tree was quite a bit out-of-date so I re-based the patches
> and combined them.
> 
> The user/group name validator didn't match the standard *nix validator
> and disallowed some valid names and allowed some invalid ones (including
> those with spaces).
> 
> This brings it inline with shadow-utils from Fedora 9.
> 
> Also change the validation routines to return 0/1 instead of True/False
> which made readability difficult, particularly with the reversed logic.
> 
> rob

ack
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ3WwACgkQc7MaxVic+2qtsACgvHhILrGpJIfJgRhJBZtZoRdC
likAoIJlK5fbeDFoqvjkltTxlJURjXaK
=LKFE
-----END PGP SIGNATURE-----




More information about the Freeipa-devel mailing list