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());
}
// 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);
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))) {
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);
}
}
}