From 527fd7792a4b3bf0303ece5b018e43e28de5ece7 Mon Sep 17 00:00:00 2001 From: zhangkaixiang Date: Thu, 13 Jul 2023 20:08:45 +0800 Subject: [PATCH] fix up the bundleName bug Signed-off-by: zhangkaixiang --- .../native/remote_file_share/src/remote_file_share.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp b/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp index 4d272b21a..bfcc1446b 100644 --- a/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp +++ b/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp @@ -320,8 +320,10 @@ int32_t RemoteFileShare::GetDfsUriFromLocal(const std::string &uriStr, const int } struct HmdfsDstInfo hdi; - LOGD("PhysicalPath: %{public}s DistributedPath: %{public}s", physicalPath.c_str(), distributedPath.c_str()); - InitHmdfsInfo(hdi, physicalPath, distributedPath, uri.GetAuthority()); + std::string bundleName = uri.GetAuthority(); + LOGD("PhysicalPath: %{public}s DistributedPath: %{public}s BundleName: %{public}s", + physicalPath.c_str(), distributedPath.c_str(), bundleName.c_str()); + InitHmdfsInfo(hdi, physicalPath, distributedPath, bundleName); std::string ioctlDir = SHAER_PATH_HEAD + std::to_string(userId) + SHAER_PATH_MID; int32_t dirFd = open(ioctlDir.c_str(), O_RDONLY); -- Gitee