diff --git a/src/tfs/src/tfs.c b/src/tfs/src/tfs.c index b3aabe177bd4c34151cbe2778825bed6262679ab..63266f8d92c0051306542c683851cdfb6ed50275 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;