[typo] Trunk DELETED my Blog folder
damm at yazzy.org
Wed Jan 2 04:28:41 EST 2008
Okay, I'm going to explain why Dir::tmpdir is different on Linux and
this is fairly easy, if you grok the tmpdir.rb you can see why.
we take this bit of code
for dir in [ENV['TMPDIR'], ENV['TMP'], ENV['TEMP'],
ENV['USERPROFILE'], @@systmpdir, '/tmp']
if dir and File.directory?(dir) and File.writable?(dir)
So we have it clearly looking at TEMP TMP and TMPDIR and USERPROFILE
(nfi what that is).
On OS X, it sets your TMPDIR such as (for me)
now I can say on my Linux server none of those variables are set, and
then it checks /tmp and is happy.
It really doesn't fix the problem, it just explains why TMPDIR is
different on OS X.
On Jan 1, 2008, at 8:25 AM, Piers Cawley wrote:
> On 12/31/07, Ben Reubenstein <benr at x-cr.com> wrote:
>> It also DELETES /tmp if you are running as a privileged user (I was
>> something)... This is a confirmed bug via #typo added ticket to trac.
> Ah... I know what's causing that. For some reason, I thought
> FileUtil::tmpdir made a unique temporary directory (it certainly does
> under OS X). That part, at least, should be quick to fix. What OS are
> you on?
> Typo-list mailing list
> Typo-list at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Typo-list