[PATCH 2/3] Set an upper limit on uids and gids.

David Shea dshea at redhat.com
Tue Jul 15 21:54:30 UTC 2014


It turns out that you can't have a GtkAdjustment without an upper limit,
or at least you can't in every minor release of Gtk. Set the upper limit
on uid and gid input to UINT_MAX.

This was added to rhel7-branch but not pushed to master.

(cherry picked from commit 4fdf2b1b55481c002da2cafe8cc9965a655bd50b)
---
 pyanaconda/ui/gui/spokes/advanced_user.glade | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/advanced_user.glade b/pyanaconda/ui/gui/spokes/advanced_user.glade
index 6648d2e..2065631 100644
--- a/pyanaconda/ui/gui/spokes/advanced_user.glade
+++ b/pyanaconda/ui/gui/spokes/advanced_user.glade
@@ -4,12 +4,14 @@
   <requires lib="gtk+" version="3.0"/>
   <object class="GtkAdjustment" id="gid">
     <property name="lower">1000</property>
+    <property name="upper">4294967295</property>
     <property name="value">1000</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
   <object class="GtkAdjustment" id="uid">
     <property name="lower">1000</property>
+    <property name="upper">4294967295</property>
     <property name="value">1000</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
-- 
2.0.0



More information about the anaconda-patches mailing list