未验证 提交 bfcf319d 编写于 作者: wafwerar's avatar wafwerar 提交者: GitHub

[TD-345]<fix>: win taosd start error. (#9478)

* [TD-345]<fix>: win taosd start error.

* [TD-345]<fix>(other): win taosd start error.

* [TD-345]<fix>(other): win taosd start error.
上级 ad7e6638
......@@ -498,7 +498,11 @@ static int tfsFormatDir(char *idir, char *odir) {
}
char tmp[PATH_MAX] = {0};
#ifdef WINDOWS
if (_fullpath(tmp,wep.we_wordv[0], PATH_MAX) == NULL) {
#else
if (realpath(wep.we_wordv[0], tmp) == NULL) {
#endif
terrno = TAOS_SYSTEM_ERROR(errno);
wordfree(&wep);
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册