X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/43f9b1c512be9bc2199369c2f5accea32b8bd423..2e9687c8d57a1609e2936e30c3f97d9366fab61d:/bin/mozilla/admin.pl diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 08b97c439..e78842751 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -549,11 +549,11 @@ sub save_user { closedir TEMPLATEDIR; foreach my $file (@templates) { - open(TEMP, $::lx_office_conf{paths}->{templates} . "/$file") + open(TEMP, "<", $::lx_office_conf{paths}->{templates} . "/$file") or $form->error($::lx_office_conf{paths}->{templates} . "/$file : $ERRNO"); $file =~ s/\Q$form->{mastertemplates}\E-//; - open(NEW, ">$form->{templates}/$file") + open(NEW, ">", "$form->{templates}/$file") or $form->error("$form->{templates}/$file : $ERRNO"); while (my $line = ) { @@ -1137,7 +1137,7 @@ sub lock_system { my $form = $main::form; my $locale = $main::locale; - open(FH, ">" . _nologin_file_name()) + open(FH, ">", _nologin_file_name()) or $form->error($locale->text('Cannot create Lock!')); close(FH);