Explorar el Código

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 hace 10 años
padre
commit
ab67e6af2e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)