}
}
bf::create_symlink(concatPath(tac_version_dir, assembly), concatPath(tacDir, assembly));
+ copySmackAndOwnership(tacDir, concatPath(tacDir, assembly), true);
if (!removeFile(concatPath(binPath, assembly))) {
_ERR("Failed to remove of %s", assembly.c_str());
std::string assembly = nuget_package_assembly.substr(nuget_package_assembly.rfind(':') + 1);
if (!strcmp(nuget_package.c_str(), nugetPackage.c_str())) {
copyFile(concatPath(tac_version_dir, assembly), concatPath(binPath, assembly));
+ copySmackAndOwnership(binPath, concatPath(binPath, assembly));
removeFile(concatPath(tacDir, assembly));
}
}
continue;
}
bf::create_symlink(concatPath(tlcDir, fileSha), library);
+ copySmackAndOwnership(getBaseName(library), library, true);
char *sql = sqlite3_mprintf("INSERT INTO TLC (PKGID, LIBRARY) VALUES (%Q, %Q);", pkgId, fileSha.c_str());
if (!insertDB(tlc_db, sql)) {
_ERR("Sqlite insert error");
sqlite3_free(sql);
copyFile(concatPath(tlcDir, fileSha), library);
+ copySmackAndOwnership(getBaseName(library), library);
if (fileCopied) {
removeFile(concatPath(tlcDir, fileSha));
}