Skip to content
Prev 5280 / 63424 Next

lstat and NFS server not responding

On Tue, 3 Apr 2001, Friedrich Leisch wrote:

            
The code says (5.6.0)

# The 'natural and safe form' for UNIX (pwd may be setuid root)

sub _backtick_pwd {
    my $cwd;
    chop($cwd = `pwd`);
    $cwd;
}

# Since some ports may predefine cwd internally (e.g., NT)
# we take care not to override an existing definition for cwd().

*cwd = \&_backtick_pwd unless defined &cwd;

which looks like a recommendation for cwd to me.
(just cwd seems to work.)