Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re: CGI open of tmpfile

by rdfield (Priest)
on Oct 22, 2002 at 13:15 UTC ( #207065=note: print w/replies, xml ) Need Help??

in reply to Re: CGI open of tmpfile
in thread CGI open of tmpfile

I don't think that this is particularly good advice. Please correct me if I am wrong, but the CGI docs clearly state that temp dirs are found in the following order:
  • ~user/tmp
  • the usual suspects (/usr/tmp, /var/tmp, C:\temp, /tmp, /temp, ::Temporary Items, and \WWW_ROOT)
I don't see any mention of it looking at the value of $TempFile::TMPDIRECTORY (whatever that might be) and I certainly wouldn't recommend anyone start hacking


Replies are listed 'Best First'.
Re: Re: Re: CGI open of tmpfile
by tune (Curate) on Oct 22, 2002 at 17:29 UTC
    You are right. But what if he or his sysadmin created another tmp directory, and disabled all the places, where looks after? I don't think that's impossible. What can he do then instead of hacking?


      $ENV{TMPDIR} = '/some/writable/directory';?


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://207065]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2017-07-22 11:32 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (338 votes). Check out past polls.