From e7feff28883c4155a23e63b5e90b28b11337885e Mon Sep 17 00:00:00 2001 From: zhangkaixiang Date: Tue, 16 May 2023 20:23:21 +0800 Subject: [PATCH] fix up the pid bug Signed-off-by: zhangkaixiang --- interfaces/innerkits/native/file_share/src/file_share.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/innerkits/native/file_share/src/file_share.cpp b/interfaces/innerkits/native/file_share/src/file_share.cpp index be352eafd..8ca1ba61e 100644 --- a/interfaces/innerkits/native/file_share/src/file_share.cpp +++ b/interfaces/innerkits/native/file_share/src/file_share.cpp @@ -116,6 +116,7 @@ static int32_t GetLowerPath(string &lowerPathHead, const string &lowerPathTail, return -EINVAL; } if (lowerPathHead.find(PID_FLAG) != string::npos) { + pid.erase(pid.size() - 1); lowerPathHead = lowerPathHead.replace(lowerPathHead.find(PID_FLAG), PID_FLAG.length(), pid); } -- Gitee