This commit is contained in:
2025-11-08 02:43:41 +01:00
parent 463b1b4ba9
commit 279777fc8b
4 changed files with 22 additions and 9 deletions
+4 -1
View File
@@ -1590,7 +1590,10 @@ int mock_fstat(int fd, struct stat *buf)
int mock_mkstemp(char *path)
{
return mkstemp(path);
int fd = mkstemp(path);
if (fd < 0) return fd;
return wrap_native_file_into_desc(fd);
}
char* mock_realpath(char *path, char *dst)