[Yum-devel] [PATCH 1/2] Deal with RHEL-5 loginuid damage
James Antill
james at and.org
Tue Jun 1 16:23:00 UTC 2010
---
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
More information about the Yum-devel
mailing list