From fa11baa63ab80d1ed1ca0fedd62de026f71002ed Mon Sep 17 00:00:00 2001 From: tianp Date: Tue, 5 Aug 2025 12:12:37 +0800 Subject: [PATCH] =?UTF-8?q?mkdtemp=E6=8E=A5=E5=8F=A3=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tianp Change-Id: Ifba383119c7f6d154fa94e9912de2358607023b3 --- interfaces/kits/js/src/mod_fs/properties/mkdtemp_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/kits/js/src/mod_fs/properties/mkdtemp_core.cpp b/interfaces/kits/js/src/mod_fs/properties/mkdtemp_core.cpp index 487f35c69..1530b9583 100644 --- a/interfaces/kits/js/src/mod_fs/properties/mkdtemp_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/mkdtemp_core.cpp @@ -30,6 +30,7 @@ FsResult MkdtempCore::DoMkdtemp(const string &path) HILOGE("Failed to request heap memory."); return FsResult::Error(ENOMEM); } + int ret = uv_fs_mkdtemp(nullptr, mkdtempReq.get(), const_cast(path.c_str()), nullptr); if (ret < 0) { HILOGE("Failed to create a temporary directory with path"); -- Gitee