make Systemwipe.te

This commit is contained in:
suchmememanyskill
2021-07-24 23:00:05 +02:00
parent 987b7e8765
commit f48447f9f5
5 changed files with 53 additions and 11 deletions

View File

@@ -173,6 +173,10 @@ ClassFunction(arrayContains) {
for (int i = 0; i < v->count; i++) {
Variable_t iter = arrayClassGetIdx(caller, i);
if (iter.variableType != arg->variableType){
SCRIPT_FATAL_ERR("type of contains does not match");
}
if (caller->variableType == StringArrayClass) {
if (!strcmp(arg->string.value, iter.string.value))