Author: nextgens
Date: 2007-11-28 15:35:17 +0000 (Wed, 28 Nov 2007)
New Revision: 16020
Modified:
trunk/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
Log:
Canonicalize the config. parameter in PersistentTempBucketFactory
Modified: trunk/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
2007-11-28 15:31:08 UTC (rev 16019)
+++ trunk/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
2007-11-28 15:35:17 UTC (rev 16020)
@@ -42,7 +42,7 @@
public PersistentTempBucketFactory(File dir, String prefix,
RandomSource rand) throws IOException {
boolean logMINOR = Logger.shouldLog(Logger.MINOR, this);
- this.dir = dir;
+ this.dir = FileUtil.getCanonicalFile(dir);
this.rand = rand;
this.fg = new FilenameGenerator(rand, false, dir, prefix);
if(!dir.exists()) {