Lines Matching refs:tok
233 fstring tok;
272 if (!next_token(&cp, tok, "/", sizeof(fstring))) {
279 if (strncmp(tok, "ALLOWED", strlen("ALLOWED")) == 0) {
281 } else if (strncmp(tok, "DENIED", strlen("DENIED")) == 0) {
285 orig_str, tok);
292 if (!(next_token(&cp, tok, "/", sizeof(fstring)) &&
293 sscanf(tok, "%i", &aflags))) {
295 orig_str, tok);
300 if (!next_token(&cp, tok, "/", sizeof(fstring))) {
302 orig_str, tok);
307 if (strncmp(tok, "0x", 2) == 0) {
308 if (sscanf(tok, "%i", &amask) != 1) {
310 orig_str, tok);
318 if (strcmp(tok, v->perm) == 0) {
324 p = tok;
381 fstring tok;
388 while (next_token(&p, tok, "\t,\r\n", sizeof(tok))) {
390 if (strncmp(tok,"REVISION:", 9) == 0) {
391 revision = strtol(tok+9, NULL, 16);
395 if (strncmp(tok,"OWNER:", 6) == 0) {
402 !StringToSid(owner_sid, tok+6)) {
409 if (strncmp(tok,"GROUP:", 6) == 0) {
416 !StringToSid(group_sid, tok+6)) {
423 if (strncmp(tok,"ACL:", 4) == 0) {
425 if (!parse_ace(&ace, tok+4)) {
429 printf("Failed to add ACL %s\n", tok);
435 printf("Failed to parse token '%s' in security descriptor,\n", tok);