소스 검색

Merge pull request #6478 from afishbeck/packageValidate2tilda

HPCC-12295 Packagemap validate should ignore ~~ on file names

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 년 전
부모
커밋
ab67e6af2e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      common/workunit/referencedfilelist.cpp

+ 2 - 1
common/workunit/referencedfilelist.cpp

@@ -52,7 +52,8 @@ bool checkForeign(const char *lfn)
 }
 const char *skipForeign(const char *name, StringBuffer *ip)
 {
-    if (*name=='~')
+    unsigned maxTildas = 2;
+    while (maxTildas-- && *name=='~')
         name++;
     const char *d1 = strstr(name, "::");
      if (d1)