New -find test -has_some_lfa_flags_of
This commit is contained in:
@ -3391,6 +3391,7 @@ return:
|
||||
}
|
||||
|
||||
break; case 28: /* -has_lfa_flags uint64_t lfa_flags */
|
||||
case 29: /* -has_some_lfa_flags_of uint64_t *arg */
|
||||
lfa_flags= *((uint64_t *) ftest->arg1);
|
||||
ret= Xorriso_get_lfa_flags(xorriso, node, path, &node_flags, &max_bit, 0);
|
||||
if(ret <= 0) {
|
||||
@ -3399,7 +3400,11 @@ return:
|
||||
value= 0;
|
||||
goto ex;
|
||||
}
|
||||
value= ((node_flags & lfa_flags) == lfa_flags);
|
||||
if(ftest->test_type == 28) {
|
||||
value= ((node_flags & lfa_flags) == lfa_flags);
|
||||
} else {
|
||||
value= !!(node_flags & lfa_flags);
|
||||
}
|
||||
|
||||
break; default:
|
||||
|
||||
|
Reference in New Issue
Block a user