aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-collector.cgi
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-27 09:39:14 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-27 09:39:14 +0000
commitd2e613ce766fe9d17d326b05d5a9688426000f09 (patch)
tree67207672f529e679c8106994af4ba24edb49cd85 /sitesummary-collector.cgi
parent23f8d53fa3eaf5b18212a23a274b55fca72357a5 (diff)
downloadsitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.gz
sitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.bz2
sitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.xz
* Make temp file name more unique by adding process id to it, while
I wait for a working getpeername call.
Diffstat (limited to 'sitesummary-collector.cgi')
-rw-r--r--sitesummary-collector.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index be640b4..1c225d7 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -74,7 +74,7 @@ if ($filename =~ m/.tar.gz$/) {
}
# XXX Come up with some unique file name.
-my $savefile = "$basedir/tmpstorage/$peeripaddr-$timestamp-$filename";
+my $savefile = "$basedir/tmpstorage/$peeripaddr-$timestamp-$$-$filename";
open(SITESUMMARY, ">$savefile") or die "Unable to write to $savefile";
print SITESUMMARY @entry;