On Tue, Jun 1, 2010 at 6:23 PM, James Antill <ja...@and.org> wrote:

> ---
>  output.py |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/output.py b/output.py
> index 7a3cfb0..de04b83 100755
> --- a/output.py
> +++ b/output.py
> @@ -1252,8 +1252,9 @@ to exit.
>         return count, "".join(list(actions))
>
>     def _pwd_ui_username(self, uid, limit=None):
> -        # loginuid is set to -1 on init.
> -        if uid is None or uid == 0xFFFFFFFF:
> +        # loginuid is set to      -1 (0xFFFF_FFFF) on init, in newer
> kernels.
> +        # loginuid is set to INT_MAX (0x7FFF_FFFF) on init, in older
> kernels.
> +        if uid is None or uid in (0xFFFFFFFF, 0x7FFFFFFF):
>             loginid = _("<unset>")
>             name = _("System") + " " + loginid
>             if limit is not None and len(name) > limit:
> --
> 1.7.0.1
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel@lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel


ACK
_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to