use strict/warnings and fix bug that was obvious once used.
This commit is contained in:
parent
c8e8171253
commit
1f55b78af5
1 changed files with 10 additions and 7 deletions
|
@ -67,6 +67,9 @@
|
|||
# You should have received a copy of the GNU General Public License,
|
||||
# version 3. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use POSIX ":sys_wait_h";
|
||||
use Fcntl; # for sysopen
|
||||
use Carp;
|
||||
|
@ -396,7 +399,6 @@ END_ICAL
|
|||
}
|
||||
$newCalendar->add_entry($entry);
|
||||
}
|
||||
}
|
||||
open(SCRUBBED_CAL, ">$file") or
|
||||
DieLog("Unable to overwrite $file: $!", $LOCK_CLEANUP_CODE);
|
||||
print SCRUBBED_CAL $newCalendar->as_string;
|
||||
|
@ -405,6 +407,7 @@ END_ICAL
|
|||
unless $? == 0;
|
||||
undef $newCalendar;
|
||||
}
|
||||
}
|
||||
######################################################################
|
||||
sub PrivatizeMergeAndTZIcalFile ($$$$$$) {
|
||||
my($icsPrivate, $icsPublic, $icsOutputDir, $tzList, $user, $errorUser) = @_;
|
||||
|
|
Loading…
Add table
Reference in a new issue