Author: toad
Date: 2007-04-26 12:10:55 +0000 (Thu, 26 Apr 2007)
New Revision: 12975
Modified:
trunk/freenet/src/freenet/support/io/FileBucket.java
Log:
canonicalise
Modified: trunk/freenet/src/freenet/support/io/FileBucket.java
===================================================================
--- trunk/freenet/src/freenet/support/io/FileBucket.java 2007-04-26
12:06:18 UTC (rev 12974)
+++ trunk/freenet/src/freenet/support/io/FileBucket.java 2007-04-26
12:10:55 UTC (rev 12975)
@@ -106,7 +106,7 @@
deleteOnExit = false;
String tmp = fs.get("Filename");
if(tmp == null) throw new CannotCreateFromFieldSetException("No
filename");
- this.file = new File(tmp).getAbsoluteFile();
+ this.file = FileUtil.getCanonicalFile(new File(tmp));
tmp = fs.get("Length");
if(tmp == null) throw new CannotCreateFromFieldSetException("No
length");
try {