浏览代码

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

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 4 年之前
父节点
当前提交
f88f7462b1
共有 1 个文件被更改,包括 2 次插入2 次删除
  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");