fixed filename in hash list, remove prefixed slash
parent
8a905d2d95
commit
0ca8f4e68c
|
|
@ -81,7 +81,7 @@ std::string IntegretyCheck::generateHashList(const std::string &app) {
|
|||
} else {
|
||||
// strip appPath
|
||||
std::string filepath = f.path().string();
|
||||
filepath.erase(0, p.size());
|
||||
filepath.erase(0, p.size() + 1);
|
||||
// write hash line to file
|
||||
hashlist << generateFileHash(f.path().string()) << HASH_FILE_DIVIDER
|
||||
<< filepath << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue