diff --git a/services/bundlemgr/src/installd/installd_operator.cpp b/services/bundlemgr/src/installd/installd_operator.cpp index ef707673750ac3ee9e20172242e5c3d40d5310c2..20ce288009863af6c0f7fbf41a80d3815fdd1f76 100644 --- a/services/bundlemgr/src/installd/installd_operator.cpp +++ b/services/bundlemgr/src/installd/installd_operator.cpp @@ -2410,9 +2410,7 @@ int32_t InstalldOperator::MigrateData(const std::vector &sourcePath auto result = MigrateDataCheckPrmissions(realSourcePaths, destPath, info); if (result != RESULT_OK) { LOG_E(BMS_TAG_INSTALLD, "migrate data check permissions failed, result:%{public}d", result); - if (realSourcePaths.empty() || result != ERR_BUNDLE_MANAGER_MIGRATE_DATA_SOURCE_PATH_ACCESS_FAILED) { - return result; - } + return result; } auto ret = RESULT_OK; for (const auto &sourcePath : realSourcePaths) { @@ -2578,7 +2576,7 @@ int32_t InstalldOperator::MigrateDataCheckPrmissions( info.uid = static_cast(destPathStat.st_uid); info.gid = static_cast(destPathStat.st_gid); info.mode = static_cast(destPathStat.st_mode); - return result; + return RESULT_OK; }