From commits-return-3365-archive-asf-public=cust-asf.ponee.io@skywalking.apache.org Thu May 27 14:26:35 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id BEA0518064E for ; Thu, 27 May 2021 16:26:35 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 2D73B5FE6C for ; Thu, 27 May 2021 14:26:35 +0000 (UTC) Received: (qmail 50215 invoked by uid 500); 27 May 2021 14:26:34 -0000 Mailing-List: contact commits-help@skywalking.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@skywalking.apache.org Delivered-To: mailing list commits@skywalking.apache.org Received: (qmail 50202 invoked by uid 99); 27 May 2021 14:26:34 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2021 14:26:34 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 5FA8C80541; Thu, 27 May 2021 14:26:34 +0000 (UTC) Date: Thu, 27 May 2021 14:26:34 +0000 To: "commits@skywalking.apache.org" Subject: [skywalking-eyes] branch main updated: Fix infinite recursive calls when containing symbolic files (#33) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <162212559433.12912.6566100819026331415@gitbox.apache.org> From: kezhenxu94@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: skywalking-eyes X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Oldrev: c4a48c9b5c845baee6abfb6fdef15c9e85eaf2a5 X-Git-Newrev: 1cd6cb9b2d31b579e9aa62483118fae75097b16a X-Git-Rev: 1cd6cb9b2d31b579e9aa62483118fae75097b16a X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git The following commit(s) were added to refs/heads/main by this push: new 1cd6cb9 Fix infinite recursive calls when containing symbolic files (#33) 1cd6cb9 is described below commit 1cd6cb9b2d31b579e9aa62483118fae75097b16a Author: Zhenxu AuthorDate: Thu May 27 22:26:26 2021 +0800 Fix infinite recursive calls when containing symbolic files (#33) --- pkg/header/check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/header/check.go b/pkg/header/check.go index 0bdccb5..b7b87c1 100644 --- a/pkg/header/check.go +++ b/pkg/header/check.go @@ -90,6 +90,9 @@ func checkPath(path string, result *Result, config *ConfigHeader) error { if info.IsDir() { return nil } + if p == path { // when p is symbolic link file, it causes infinite recursive calls + return nil + } if err := checkPath(p, result, config); err != nil { return err }