mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
"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>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @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
|
||||
@ -603,7 +605,7 @@ function do_stat($url,$long=false,$numeric=false,$full_path=false)
|
||||
{
|
||||
$bname = basename($bname);
|
||||
}
|
||||
if (!file_exists($url) || !($stat = lstat($url)))
|
||||
if (!($stat = @lstat($url)))
|
||||
{
|
||||
echo "$bname: no such file or directory!\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user