aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xuserdrake6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 5c5450b..e6262f3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix minimal [GU]ID (mga#16888)
+
Version 2.12 - 27 August 2016
- fix gtk+3 warning
diff --git a/userdrake b/userdrake
index d790d9d..5778636 100755
--- a/userdrake
+++ b/userdrake
@@ -53,6 +53,8 @@ my $in = interactive->vnew('su');
my $us = {};
$us->{VERSION} = '1.13.3';
+my $minimum_id = 1000;
+
my $window_splash = Gtk3::Window->new('popup');
$window_splash->signal_connect(delete_event => \&QuitGlobal);
$window_splash->set_title(N("Userdrake") . $us->{VERSION});
@@ -521,7 +523,7 @@ sub AddUser() {
$fullname or $us->{o}{fullname}->set_text($us->{o}{login}->get_text);
0; # Gdk expect focus event handlers to return false
});
- $us->{o}{uid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new(500, 1, 65000, 1, 10, 10), 1, 0);
+ $us->{o}{uid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new($minimum_id, 1, 65000, 1, 10, 10), 1, 0);
$h->pack_end($us->{o}{uid}, 0, 0, 4);
$h->pack_end(Gtk3::Label->new(N("UID: ")), 0, 0, 4);
GrayBox($us->{o}{userid}, $h, 0);
@@ -615,7 +617,7 @@ sub AddGroup() {
!$error and $w->destroy; $error = 0 });
} ([ N("Cancel"), 1 ], [ N("Ok"), 0 ])
);
- $us->{o}{gid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new(500, 1, 65000, 1, 10, 10), 1, 0);
+ $us->{o}{gid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new($minimum_id, 1, 65000, 1, 10, 10), 1, 0);
$h->pack_end($us->{o}{gid}, 0, 0, 4);
$h->pack_end(Gtk3::Label->new(N("GID: ")), 0, 0, 4);
$us->{o}{groupid}->signal_connect('clicked' => sub { $mode = !$mode; $h->set_sensitive($mode) });