summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2010-02-11 20:06:10 (GMT)
committerMathieu Parent <math.parent@gmail.com>2010-02-11 20:06:10 (GMT)
commit65e3577316a7ea4819d5730d4bfe6ecb79a90efe (patch)
treebffcd5615d1b7cb28d3fc57d7cb7a7b6ca45fd43 /lib
parent7050420b847f00e31d841ad235c6d670a7a10275 (diff)
downloadperl-Kolab-65e3577316a7ea4819d5730d4bfe6ecb79a90efe.tar.gz
solve kolab/issue4024 (Lots of tmp files in kolab's configuration
directory), introduced 2009-12-13.
Diffstat (limited to 'lib')
-rw-r--r--lib/Kolab/Conf.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Kolab/Conf.pm b/lib/Kolab/Conf.pm
index 799e380..8ca62ca 100644
--- a/lib/Kolab/Conf.pm
+++ b/lib/Kolab/Conf.pm
@@ -288,6 +288,8 @@ sub build {
if($confighaschanged{$tmpl}) {
move($config->filename, $cfg) || Kolab::log('T', "Error moving configfile to $cfg, error: $!", KOLAB_ERROR );
fixup( $cfg, $owner, $perm );
+ } else {
+ unlink($config->filename);
}
Kolab::log('T', "Finished creating configuration file `$cfg'", KOLAB_DEBUG );