1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Update cli-tests/file-stat tests

This commit is contained in:
Li-Yu Yu
2025-03-28 21:45:47 +00:00
parent 3bd5aa3404
commit 2a12bbaf90
7 changed files with 23 additions and 3 deletions

View File

@ -202,7 +202,7 @@ int UTIL_isFdRegularFile(int fd)
stat_t statbuf;
int ret;
UTIL_TRACE_CALL("UTIL_isFdRegularFile(%d)", fd);
ret = UTIL_fstat(fd, "", &statbuf) && UTIL_isRegularFileStat(&statbuf);
ret = fd >= 0 && UTIL_fstat(fd, "", &statbuf) && UTIL_isRegularFileStat(&statbuf);
UTIL_TRACE_RET(ret);
return ret;
}