From: Anatol Belski Date: Thu, 5 Mar 2015 13:08:22 +0000 (+0100) Subject: stat is done by php X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~762^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3fad68efd615f3f423e996f9c62f00a01c8e102;p=php stat is done by php --- diff --git a/ext/fileinfo/libmagic/fsmagic.c b/ext/fileinfo/libmagic/fsmagic.c index 6a8f8f1eb3..7f9211597d 100644 --- a/ext/fileinfo/libmagic/fsmagic.c +++ b/ext/fileinfo/libmagic/fsmagic.c @@ -107,16 +107,6 @@ file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream * } #define COMMA (did++ ? ", " : "") - /* - * Fstat is cheaper but fails for files you don't have read perms on. - * On 4.2BSD and similar systems, use lstat() to identify symlinks. - */ -#ifdef S_IFLNK - if ((ms->flags & MAGIC_SYMLINK) == 0) - ret = lstat(fn, sb); - else -#endif - ret = stat(fn, sb); /* don't merge into if; see "ret =" above */ if (stream) { php_stream_statbuf ssb;