mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Oops, open_tempfile and open_lock_tempfile are not open(), so shouldn't
be three argument style (for now).
This commit is contained in:
@@ -90,7 +90,7 @@ elsif ($in{'file_def'} == 2) {
|
||||
}
|
||||
if ($file) {
|
||||
my $ZONE;
|
||||
&open_tempfile($ZONE, ">", &make_chroot($file), 1, 1) ||
|
||||
&open_tempfile($ZONE, ">". &make_chroot($file), 1, 1) ||
|
||||
&error(&text('create_efile3', $file, $!));
|
||||
&close_tempfile($ZONE);
|
||||
&set_ownership(&make_chroot($file));
|
||||
|
||||
@@ -20,7 +20,7 @@ if ($in{'file'} eq $files[0]) {
|
||||
|
||||
# Write to it
|
||||
my $DATA;
|
||||
&open_lock_tempfile($DATA, ">", &make_chroot($in{'file'}));
|
||||
&open_lock_tempfile($DATA, ">".&make_chroot($in{'file'}));
|
||||
&print_tempfile($DATA, $in{'data'});
|
||||
&close_tempfile($DATA);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user