From: Alexander V. Tikhonov Date: Fri, 8 Nov 2019 12:08:04 +0000 (+0300) Subject: buildconf: avoid using tempfile when removing files X-Git-Tag: curl-7_70_0~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e41bec96a6e;p=thirdparty%2Fcurl.git buildconf: avoid using tempfile when removing files Closes #5213 --- diff --git a/buildconf b/buildconf index 5095753129..383665a7b9 100755 --- a/buildconf +++ b/buildconf @@ -64,16 +64,7 @@ findtool(){ # removethis(){ if test "$#" = "1"; then - find . -depth -name $1 -print > buildconf.tmp.$$ - while read fdname - do - if test -f "$fdname"; then - rm -f "$fdname" - elif test -d "$fdname"; then - rm -f -r "$fdname" - fi - done < buildconf.tmp.$$ - rm -f buildconf.tmp.$$ + find . -depth -name $1 -print -exec rm -rf {} \; fi }