summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-01-25 11:18:26 +0000
committerColin Guthrie <colin@mageia.org>2014-01-25 11:19:54 +0000
commitcfc5075fdd3effdb0617e98133cf08e6fbdceef7 (patch)
tree585d01bac3e208341c7670fb755396bfe56f9c37 /perl-install/install
parent7a5695b3a28975762ee6d8fd7ab2a09858641a06 (diff)
downloaddrakx-cfc5075fdd3effdb0617e98133cf08e6fbdceef7.tar
drakx-cfc5075fdd3effdb0617e98133cf08e6fbdceef7.tar.gz
drakx-cfc5075fdd3effdb0617e98133cf08e6fbdceef7.tar.bz2
drakx-cfc5075fdd3effdb0617e98133cf08e6fbdceef7.tar.xz
drakx-cfc5075fdd3effdb0617e98133cf08e6fbdceef7.zip
Ensure uid/gid extraction works when adding users via summary page
Fixes chown'ing user to root when adding existing user on upgrade. mga#12375
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/NEWS3
-rw-r--r--perl-install/install/steps_interactive.pm5
2 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index b098016e6..9a2fa08df 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,6 @@
+- Ensure uid/gid extraction works when adding users via summary page
+ (fixes chown'ing user to root when adding existing user on upgrade mga#12375)
+
Version 16.26.6 - 23 January 2014
- fix hidden icon in individual package selection (mga#12397)
diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm
index 83929dd83..5da4fa03d 100644
--- a/perl-install/install/steps_interactive.pm
+++ b/perl-install/install/steps_interactive.pm
@@ -890,6 +890,11 @@ sub summary {
label => N("User management"),
clicked => sub {
if (my $u = any::ask_user($o, $o->{users}, $o->{security}, needauser => 1)) {
+ if ($::prefix) {
+ #- getpwnam, getgrnam, getgrid works
+ symlinkf("$::prefix/etc/passwd", '/etc/passwd');
+ symlinkf("$::prefix/etc/group", '/etc/group');
+ }
any::add_users([$u], $o->{authentication});
}
},