mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-10 14:10:08 +08:00
Match-id-3ce9f074c94ae4bba453ca74ae0d9bd6399c3df0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user