diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 12:40:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 12:40:19 +0000 |
commit | e81614106311688a1932251f23ac42ad04ada4fe (patch) | |
tree | 5644b49fb23e5ee78b6283a8b2b8c2194d1711fc /perl-install/install_steps.pm | |
parent | be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9 (diff) | |
download | drakx-backup-do-not-use-e81614106311688a1932251f23ac42ad04ada4fe.tar drakx-backup-do-not-use-e81614106311688a1932251f23ac42ad04ada4fe.tar.gz drakx-backup-do-not-use-e81614106311688a1932251f23ac42ad04ada4fe.tar.bz2 drakx-backup-do-not-use-e81614106311688a1932251f23ac42ad04ada4fe.tar.xz drakx-backup-do-not-use-e81614106311688a1932251f23ac42ad04ada4fe.zip |
do not use "local *F"
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 838694be8..9aed7ba4e 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -745,9 +745,8 @@ sub addUser { any::write_passwd_user($p, $_, $o->{authentication}{md5}) foreach @$users; - local *F; - open F, ">> $p/etc/group" or die "can't append to group file: $!"; - print F "$_->{name}:x:$_->{gid}:\n" foreach grep { ! getgrgid($_->{gid}) } @$users; + append_to_file("$p/etc/group", + map { "$_->{name}:x:$_->{gid}:\n" } grep { ! getgrgid($_->{gid}) } @$users); foreach my $u (@$users) { if (! -d "$p$u->{home}") { |