diff options
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | sitesummary-collector.cgi | 2 | 
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 9923d2f..40ad299 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@  sitesummary (0.0.2) UNRELEASED; urgency=low    * Not released yet. +  * Make temp file name more unique by adding process id to it, while +    I wait for a working getpeername call.   -- Petter Reinholdtsen <pere@debian.org>  Sat, 26 Aug 2006 12:10:27 +0200 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;  | 
