Lines Matching refs:macstr
305 char *regexstr, *modestr, *macstr, *regerrorstr; in add_spec_line() local
315 macstr = strtok(NULL, " \t"); in add_spec_line()
316 if (macstr == NULL) { /* the mode is just optional */ in add_spec_line()
317 macstr = modestr; in add_spec_line()
336 entry->mactext = strdup(macstr); in add_spec_line()
340 if (asprintf(&entry->mactext, "sebsd/%s", macstr) == -1) in add_spec_line()
342 if (strcmp(macstr, "<<none>>") == 0) in add_spec_line()
398 char *regerrorstr, *macstr; in apply_specs() local
462 macstr = malloc(size); in apply_specs()
463 if (macstr == NULL) in apply_specs()
465 *macstr = '\0'; in apply_specs()
469 if (*macstr != '\0') in apply_specs()
470 strcat(macstr, ","); in apply_specs()
471 strcat(macstr, ls->match->mactext); in apply_specs()
474 if (mac_from_text(&mac, macstr)) in apply_specs()
475 err(1, "mac_from_text(%s)", macstr); in apply_specs()
480 free(macstr); in apply_specs()
483 err(1, "mac_set_link(%s, %s)", ftsent->fts_path, macstr); in apply_specs()
486 free(macstr); in apply_specs()