diff options
author | Colin Guthrie <colin@mageia.org> | 2014-01-25 11:18:26 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-01-25 11:19:54 +0000 |
commit | cfc5075fdd3effdb0617e98133cf08e6fbdceef7 (patch) | |
tree | 585d01bac3e208341c7670fb755396bfe56f9c37 /perl-install/install/steps_interactive.pm | |
parent | 7a5695b3a28975762ee6d8fd7ab2a09858641a06 (diff) | |
download | drakx-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/steps_interactive.pm')
-rw-r--r-- | perl-install/install/steps_interactive.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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}); } }, |