From a6d40a7d43cb141c9f78d4bc5995e0ad7c93267d Mon Sep 17 00:00:00 2001 From: zhushuanghong Date: Sat, 12 Apr 2025 15:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushuanghong --- services/native/src/work_scheduler_service.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/native/src/work_scheduler_service.cpp b/services/native/src/work_scheduler_service.cpp index 861ca59..b59c99d 100644 --- a/services/native/src/work_scheduler_service.cpp +++ b/services/native/src/work_scheduler_service.cpp @@ -1249,11 +1249,6 @@ int32_t WorkSchedulerService::CreateNodeDir(std::string dir) int32_t WorkSchedulerService::CreateNodeFile(std::string filePath) { if (access(filePath.c_str(), 0) != 0) { - char resolvedPath[PATH_MAX] = {0}; - if (realpath(filePath.c_str(), resolvedPath) == nullptr) { - WS_HILOGE("Fail to resolved file: %{private}s, errno: %{public}s", filePath.c_str(), strerror(errno)); - return errno; - } FILE *file = fopen(filePath.c_str(), "w+"); if (file == nullptr) { WS_HILOGE("Fail to open file: %{private}s, errno: %{public}s", filePath.c_str(), strerror(errno)); -- Gitee