Change-Id: I6b85a62d45c2261353a24420d95dd3c641efb25d
}
if (!isInternetPrivilegeExisted) {
}
if (!isInternetPrivilegeExisted) {
- std::string filePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
- std::ofstream output(filePath);
- if (exist(filePath)) {
+ std::string ipv6FilePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
+ std::ofstream output(ipv6FilePath);
+ if (exist(ipv6FilePath)) {
+ copySmackAndOwnership(rootPath + "/bin/", ipv6FilePath);
_INFO("File to disable IPv6 is created successfully");
} else {
_SERR("Failed to create file to disable IPv6 [%s]", pkgId);
_INFO("File to disable IPv6 is created successfully");
} else {
_SERR("Failed to create file to disable IPv6 [%s]", pkgId);