[Yum-devel] [PATCH 1/2] Deal with RHEL-5 loginuid damage

Tim Lauridsen tim.lauridsen at googlemail.com
Tue Jun 1 16:32:36 UTC 2010


On Tue, Jun 1, 2010 at 6:23 PM, James Antill <james at 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 at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel


ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100601/3752176d/attachment.html>


More information about the Yum-devel mailing list