Update cli-tests/file-stat tests

This commit is contained in:
Li-Yu Yu committed 2025-03-28 22:46:26 +00:00
1 parent 3bd5aa3404
commit 2a12bbaf90
7 files changed
+23 -3

No files matched your search

+1 -1
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;
}