I noticed fred/fproxy was creating temporary files in its working
directory, and I suspect line 150 of MIME.java, as this creates a
FileBucketFactory without passing it the correct value of tempDir.

Fixing this (and several other places where the same happens) isn't
trivial, I've come up with the following solutions:

-Get the tempDir out of the BucketFactory you already have. This
 means you have to force it to be a FileBucketFactory, which is not a
 nice solution for something so general.
-Get the value directly out of the config file. This might be tricky
 as you don't know where the config file is, and from a support-code
 perspective would be even worse than the previous.
-Use $TMP/$TMPDIR. This would mean that having yet another config value 
 apart from tempDir and FECTempDir. Another slight drawback is that java
 doesn't allow us to access the environment anymore.
-Have a reasonable tempDir be passed via the constructor.

The last seems the most viable, but is still far from nice. Any better
suggestions?

-- 
Frank v Waveren                                      Fingerprint: 21A7 C7F3
fvw@[var.cx|stack.nl|chello.nl] ICQ#10074100            1FF3 47FF 545C CB53
Public key: hkp:[EMAIL PROTECTED]            7BD9 09C0 3AC1 6DF2

_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to