fixed filename in hash list, remove prefixed slash

master
Arne Schroeder 2019-09-07 13:36:07 +02:00
parent 8a905d2d95
commit 0ca8f4e68c
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ std::string IntegretyCheck::generateHashList(const std::string &app) {
} else { } else {
// strip appPath // strip appPath
std::string filepath = f.path().string(); std::string filepath = f.path().string();
filepath.erase(0, p.size()); filepath.erase(0, p.size() + 1);
// write hash line to file // write hash line to file
hashlist << generateFileHash(f.path().string()) << HASH_FILE_DIVIDER hashlist << generateFileHash(f.path().string()) << HASH_FILE_DIVIDER
<< filepath << std::endl; << filepath << std::endl;