From 9b6658942afa63e8505b8ad91c0c5491822fb288 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 5 Jul 2004 04:37:44 +0000 Subject: allow getpwnam, getgrnam, getgrid to work --- perl-install/install_steps.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 76afb301c..eda66496e 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -704,6 +704,12 @@ sub addUser { my ($o) = @_; my $users = $o->{users} ||= []; + if ($::prefix) { + #- getpwnam, getgrnam, getgrid works + symlinkf("$::prefix/etc/passwd", '/etc/passwd'); + symlinkf("$::prefix/etc/group", '/etc/group'); + } + my (%uids, %gids); foreach (glob_("$::prefix/home")) { my ($u, $g) = (stat($_))[4,5]; $uids{$u} = 1; $gids{$g} = 1 } -- cgit v1.2.1