Lines Matching refs:macstr
307 char *regexstr, *modestr, *macstr, *regerrorstr; in add_spec_line() local
317 macstr = strtok(NULL, " \t"); in add_spec_line()
318 if (macstr == NULL) { /* the mode is just optional */ in add_spec_line()
319 macstr = modestr; in add_spec_line()
338 entry->mactext = strdup(macstr); in add_spec_line()
342 if (asprintf(&entry->mactext, "sebsd/%s", macstr) == -1) in add_spec_line()
344 if (strcmp(macstr, "<<none>>") == 0) in add_spec_line()
400 char *regerrorstr, *macstr; in apply_specs() local
464 macstr = malloc(size); in apply_specs()
465 if (macstr == NULL) in apply_specs()
467 *macstr = '\0'; in apply_specs()
471 if (*macstr != '\0') in apply_specs()
472 strcat(macstr, ","); in apply_specs()
473 strcat(macstr, ls->match->mactext); in apply_specs()
476 if (mac_from_text(&mac, macstr)) in apply_specs()
477 err(1, "mac_from_text(%s)", macstr); in apply_specs()
482 free(macstr); in apply_specs()
485 err(1, "mac_set_link(%s, %s)", ftsent->fts_path, macstr); in apply_specs()
488 free(macstr); in apply_specs()