Flush only where needed

This commit is contained in:
Jamie Cameron
2015-09-27 09:26:51 -07:00
parent 6a725d590b
commit df520db5bd

View File

@@ -337,7 +337,7 @@ else {
local $lref = &read_file_lines($cron_temp_file);
$_[0]->{'line'} = scalar(@$lref);
push(@$lref, &cron_job_line($_[0]));
&flush_file_lines();
&flush_file_lines($cron_temp_file);
&set_ownership_permissions($_[0]->{'user'}, undef, undef,
$cron_temp_file);
&copy_crontab($_[0]->{'user'});