diff options
author | Mathieu Parent <math.parent@gmail.com> | 2010-02-11 20:06:10 (GMT) |
---|---|---|
committer | Mathieu Parent <math.parent@gmail.com> | 2010-02-11 20:06:10 (GMT) |
commit | 65e3577316a7ea4819d5730d4bfe6ecb79a90efe (patch) | |
tree | bffcd5615d1b7cb28d3fc57d7cb7a7b6ca45fd43 | |
parent | 7050420b847f00e31d841ad235c6d670a7a10275 (diff) | |
download | perl-Kolab-65e3577316a7ea4819d5730d4bfe6ecb79a90efe.tar.gz |
solve kolab/issue4024 (Lots of tmp files in kolab's configuration
directory), introduced 2009-12-13.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/Kolab/Conf.pm | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2009-02-11 Mathieu Parent <math.parent@gmail.com> + + * lib/Kolab/Conf.pm: + solve kolab/issue4024 (Lots of tmp files in kolab's configuration + directory), introduced 2009-12-13. + 2010-01-01 Richard Bos <richard@radoeka.nl> * sbin/kolab_bootstrap.in: solve kolab/issue4009: kolab_bootstrap contains 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 ); |