forked from extern/egroupware
"removing file_exists() again and suppressing the warning of lstat() if file does not exist, as file_exists calls stat(), which resolves sysmlinks first and costs more then double the time on dirs with many symlinks"
This commit is contained in:
parent
edea73521e
commit
0dd58f3038
@ -9,6 +9,8 @@
|
|||||||
* @copyright (c) 2007/8 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @copyright (c) 2007/8 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
*
|
||||||
|
* @todo --domain does NOT work with --user root_* for domains other then the first in header.inc.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
chdir(dirname(__FILE__)); // to enable our relative pathes to work
|
chdir(dirname(__FILE__)); // to enable our relative pathes to work
|
||||||
@ -603,7 +605,7 @@ function do_stat($url,$long=false,$numeric=false,$full_path=false)
|
|||||||
{
|
{
|
||||||
$bname = basename($bname);
|
$bname = basename($bname);
|
||||||
}
|
}
|
||||||
if (!file_exists($url) || !($stat = lstat($url)))
|
if (!($stat = @lstat($url)))
|
||||||
{
|
{
|
||||||
echo "$bname: no such file or directory!\n";
|
echo "$bname: no such file or directory!\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user