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?

Replies are listed 'Best First'.
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.