diff options
author | Francois Pons <fpons@mandriva.com> | 1999-11-08 15:15:09 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 1999-11-08 15:15:09 +0000 |
commit | b8cb3272f5a12c46087c52d3cef120b46cb2d0ea (patch) | |
tree | 24da9fcb4b86bde78d89ae62839a58bb2f2d0e5c /perl-install/install_steps.pm | |
parent | 989f1150a37765385b92d9d561b2a2a0c9be4984 (diff) | |
download | drakx-backup-do-not-use-b8cb3272f5a12c46087c52d3cef120b46cb2d0ea.tar drakx-backup-do-not-use-b8cb3272f5a12c46087c52d3cef120b46cb2d0ea.tar.gz drakx-backup-do-not-use-b8cb3272f5a12c46087c52d3cef120b46cb2d0ea.tar.bz2 drakx-backup-do-not-use-b8cb3272f5a12c46087c52d3cef120b46cb2d0ea.tar.xz drakx-backup-do-not-use-b8cb3272f5a12c46087c52d3cef120b46cb2d0ea.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index b2041a11c..077b90376 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -339,8 +339,9 @@ sub addUser($) { } else { my $u = $_->{uid} || ($_->{oldu} = (stat("$p$_->{home}"))[4]); my $g = $_->{gid} || ($_->{oldg} = (stat("$p$_->{home}"))[5]); - if (!$u || getpwuid($u)) { for ($u = 500; getpwuid($u) || $uids{$u}; $u++) {} } - if (!$g || getgrgid($g)) { for ($g = 500; getgrgid($g) || $gids{$g}; $g++) {} } + #- search for available uid above 501 else initscripts may fail to change llanguage for KDE. + if (!$u || getpwuid($u)) { for ($u = 501; getpwuid($u) || $uids{$u}; $u++) {} } + if (!$g || getgrgid($g)) { for ($g = 501; getgrgid($g) || $gids{$g}; $g++) {} } $_->{home} ||= "/home/$_->{name}"; $_->{uid} = $u; $uids{$u} = 1; |