Match-id-3ce9f074c94ae4bba453ca74ae0d9bd6399c3df0

This commit is contained in:
BianTanggui
2022-04-06 14:40:36 +08:00
parent b3acb85963
commit 6cb2eb0ead
5 changed files with 79 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ static bool CheckFileLegality(const char* filePath, const size_t filePathLen,
Logger("realpath failed!", LEVEL_ERROR, SCREEN_YES);
return false;
}
if (strstr(resolvedPath, filePath) == NULL) { // 存在软链接
if (strcmp(resolvedPath, filePath) != 0) { // 存在软链接
Logger("filePath has a soft link!", LEVEL_ERROR, SCREEN_YES);
return false;
}