From 446e7e8befe324eccfe90614b103de8f39ec089f Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 24 Oct 2005 08:54:46 +0000 Subject: [PATCH] *) Bugfix for Seed-Upload - Permission denied problem See: http://www.yacy-forum.de/viewtopic.php?p=11648#11648 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@978 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacySeedDB.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index 06e964f57..5a817f973 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -669,8 +669,9 @@ public final class yacySeedDB { String log = null; File seedFile = null; try { - // create a seed file which for uploading ... - seedFile = new File("seedFile.txt"); + // create a seed file which for uploading ... + seedFile = File.createTempFile("seedFile",".txt",((plasmaSwitchboard)sb).cacheManager.cachePath); + seedFile.deleteOnExit(); serverLog.logFine("YACY","SaveSeedList: Storing seedlist into tempfile " + seedFile.toString()); ArrayList uv = storeCache(seedFile, true);