Oops, open_tempfile and open_lock_tempfile are not open(), so shouldn't

be three argument style (for now).
This commit is contained in:
Joe Cooper
2016-06-03 00:36:35 -07:00
parent fb4595b38d
commit 2d7ba714ac
2 changed files with 2 additions and 2 deletions

View File

@@ -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));

View 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);