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 /lib | |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kolab/Conf.pm | 2 |
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 ); |