[typo] Trunk DELETED my Blog folder
Scott Likens
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
OS X.
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)
TMPDIR=/var/folders/o4/o4PgUarhGOqv22kCO8qczE+++TI/-Tmp-/
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
>> testing
>> 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
> http://rubyforge.org/mailman/listinfo/typo-list
>
>
> !DSPAM:477a91e263921804284693!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/typo-list/attachments/20080102/864a91be/attachment-0001.html
More information about the Typo-list
mailing list