[Issue#] N/A
[Problem] web app installation failed when encryption setting is enable.
[Cause] try encryption at file size is zero.
[Solution] if file size is zero, skip encryption.
[SCMRequest] N/A
Change-Id: Icef14aac576d755f3d8b3afda5ed3b9e2aa398a8
"[" << DPL::GetErrnoString(error) << "]");
}
const std::size_t fileSize = info.st_size;
+ if (0 == fileSize) {
+ LogDebug(fileName << " size is 0, so encryption is skiped");
+ return;
+ }
DPL::ScopedFClose inFile(openFile(fileName, "r"));
DPL::ScopedFClose outFile(openFile(encFile, "w"));