Fix handling of template files like upstream.
authorThomas Hochstein <thh@inter.net>
Sat, 15 Feb 2014 16:47:01 +0000 (17:47 +0100)
committerThomas Hochstein <thh@inter.net>
Sat, 15 Feb 2014 16:47:01 +0000 (17:47 +0100)
In ccfa1226518d95ed308974f6739b0f7233557327
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>
uvvote.pl

index c0c3712..8e8fb68 100755 (executable)
--- a/uvvote.pl
+++ b/uvvote.pl
@@ -122,9 +122,9 @@ if ($clean) {
   # normally unixtime is sufficient, if it is not unique append our PID
   my $ext = time;
 
-  opendir (DIR, $config{tmpdir});
-  my @tmpfiles = readdir (DIR);
-  closedir (DIR);
+  opendir (TMP, $config{tmpdir});
+  my @tmpfiles = readdir (TMP);
+  closedir (TMP);
   opendir (FERTIG, $config{archivedir});
   my @fertigfiles = readdir (FERTIG);
   closedir (FERTIG);
This page took 0.012043 seconds and 4 git commands to generate.