Explorar el Código

Merge pull request #14165 from richardkchapman/ecl-bundle-space

HPCC-24729 ecl bundle tool fails if home directory name contains a space

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merged-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday hace 4 años
padre
commit
9a8b04ca57
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      ecl/ecl-bundle/ecl-bundle.cpp

+ 2 - 2
ecl/ecl-bundle/ecl-bundle.cpp

@@ -379,9 +379,9 @@ public:
                 if (!path.length())
                     path.append(".");
                 if (bundleFile->isDirectory()==fileBool::foundYes && !directoryContainsBundleFile(bundleFile))
-                    includeOpt.appendf(" -I%s", bundle);
+                    includeOpt.appendf(" \"-I%s\"", bundle);
                 else
-                    includeOpt.appendf(" -I%s", path.str());
+                    includeOpt.appendf(" \"-I%s\"", path.str());
             }
             else
                 throw MakeStringException(0, "File not found");