Fix handling of template files like upstream.

In ccfa122651
we replaced TMP by DIR to harmonize its usage.

Upstream went the other way round and changed
DIR to TMP. We switch now to be compatible to
upstream.

Picked from upstream.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2014-02-15 17:47:01 +01:00
parent e670e40bb0
commit 7a54626ef8

View file

@ -122,9 +122,9 @@ if ($clean) {
# normally unixtime is sufficient, if it is not unique append our PID # normally unixtime is sufficient, if it is not unique append our PID
my $ext = time; my $ext = time;
opendir (DIR, $config{tmpdir}); opendir (TMP, $config{tmpdir});
my @tmpfiles = readdir (DIR); my @tmpfiles = readdir (TMP);
closedir (DIR); closedir (TMP);
opendir (FERTIG, $config{archivedir}); opendir (FERTIG, $config{archivedir});
my @fertigfiles = readdir (FERTIG); my @fertigfiles = readdir (FERTIG);
closedir (FERTIG); closedir (FERTIG);