From bfcf319d6e07de049bff5b21cd7ff3abf852f9ae Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang <1296468573@qq.com> Date: Fri, 31 Dec 2021 10:57:24 +0800 Subject: [PATCH] [TD-345]: win taosd start error. (#9478) * [TD-345]: win taosd start error. * [TD-345](other): win taosd start error. * [TD-345](other): win taosd start error. --- src/tfs/src/tfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tfs/src/tfs.c b/src/tfs/src/tfs.c index b3aabe177b..63266f8d92 100644 --- a/src/tfs/src/tfs.c +++ b/src/tfs/src/tfs.c @@ -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; -- GitLab