need lstat

This commit is contained in:
Ralf Becker 2009-04-15 21:09:48 +00:00
parent 9e34658599
commit e7fd6b2cca

View File

@ -603,7 +603,7 @@ function do_stat($url,$long=false,$numeric=false,$full_path=false)
{ {
$bname = basename($bname); $bname = basename($bname);
} }
if (!file_exists($url) || !($stat = stat($url))) if (!file_exists($url) || !($stat = lstat($url)))
{ {
echo "$bname: no such file or directory!\n"; echo "$bname: no such file or directory!\n";
} }