Change the function name from updateAssemblyInfo() to copySmackAndOwnership()
[platform/core/dotnet/launcher.git] / NativeLauncher / tool / ni_common.cc
index 6fc442f..2326722 100644 (file)
@@ -112,7 +112,7 @@ static std::string getAppNIPath(const std::string& niPath)
 
        if (!isFileExist(niDirPath)) {
                if (mkdir(niDirPath.c_str(), 0755) == 0) {
-                       updateAssemblyInfo(prevPath, niDirPath);
+                       copySmackAndOwnership(prevPath, niDirPath);
                } else {
                        fprintf(stderr, "Fail to create app ni directory (%s)\n", niDirPath.c_str());
                }
@@ -267,7 +267,7 @@ static ni_error_e crossgen(const std::string& dllPath, const std::string& appPat
                        // Do not use niExist() function to check whether ni file created or not.
                        // niEixst() return false for System.Private.Corelib.dll
                        if (isFileExist(absNiPath)) {
-                               updateAssemblyInfo(absDllPath, absNiPath);
+                               copySmackAndOwnership(absDllPath, absNiPath);
 #ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT
                                if (baseAddr != 0) {
                                        updateBaseAddrFile(absNiPath, baseAddr);
@@ -508,7 +508,7 @@ ni_error_e createTACPkgRoot(const std::string& pkgId, DWORD flags)
                                                if (!bf::exists(symNIPath)) {
                                                        bf::create_symlink(originNiPath, symNIPath);
                                                        fprintf(stderr, "%s symbolic link file generated successfully.\n", symNIPath.c_str());
-                                                       updateAssemblyInfo(tacDir.c_str(), symNIPath.c_str(), true);
+                                                       copySmackAndOwnership(tacDir.c_str(), symNIPath.c_str(), true);
 
                                                        std::string NIFileName = symNIPath.substr(symNIPath.rfind('/') + 1);
                                                        if (!removeFile(concatPath(binNIDir, NIFileName))) {
@@ -610,7 +610,7 @@ ni_error_e createNiDllUnderPkgRoot(const std::string& pkgId, const std::string&
                                if (!bf::exists(setNiPath)) {
                                        bf::create_symlink(originNiPath, setNiPath);
                                        fprintf(stderr, "%s symbolic link file generated successfully.\n", setNiPath.c_str());
-                                       updateAssemblyInfo(tacDir.c_str(), setNiPath.c_str(), true);
+                                       copySmackAndOwnership(tacDir.c_str(), setNiPath.c_str(), true);
                                }
                        }
                }