Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?

by puterboy (Scribe)
on Nov 26, 2008 at 07:24 UTC ( #726025=note: print w/ replies, xml ) Need Help??


in reply to Re: Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?
in thread Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?

Thanks - that makes a lot of sense. I hadn't considered that changing directory to root or elsewhere is harmless since it doesn't outlast the routine.


Comment on Re^2: Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?
Re^3: Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?
by mr_mischief (Monsignor) on Nov 26, 2008 at 15:45 UTC
    The root directory will tend to be readable by all users by default anyway. A directory that's by default world-readable is the ideal place to not have permission errors upon reading.

    Many daemon programs actually change directory to '/' as one of the first things they do. Some others are written to have a specific directory set up just for a chroot jail.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://726025]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-08-31 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls