From 6c478be4df6c134e6d13617feba70518f6d123bc Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 9 Dec 2022 22:38:53 +0800 Subject: [PATCH] Update fileinfo.sh --- plugins/php/versions/common/fileinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/php/versions/common/fileinfo.sh b/plugins/php/versions/common/fileinfo.sh index 0974013a3..b947c9a60 100755 --- a/plugins/php/versions/common/fileinfo.sh +++ b/plugins/php/versions/common/fileinfo.sh @@ -66,7 +66,7 @@ Install_lib() if [ "$OSNAME" == 'centos' ];then FILE_softmagic=$sourcePath/php${version}/ext/${LIBNAME}/libmagic/softmagic.c FIND_UNDEF_STRNDUP=`cat $FILE_softmagic|grep '#undef strndup'` - if [ "$version" -gt "74" ] && [ "$FIND_C99" == "" ];then + if [ "$version" -gt "74" ] && [ "$FIND_UNDEF_STRNDUP" == "" ];then sed -i $BAK "s/char \*strndup/#undef strndup\nchar \*strndup/g" $FILE_softmagic fi fi