version 1.44, 2012/01/05 21:46:15 |
version 1.45, 2012/02/05 18:51:18 |
|
|
extern char *optarg; |
extern char *optarg; |
extern int optind; |
extern int optind; |
TAG *searchlist; |
TAG *searchlist; |
ENTRY *ep; |
|
glob_t pg; |
glob_t pg; |
size_t len; |
size_t len; |
int ch, f_cat, f_how, found; |
int ch, f_cat, f_how, found; |
|
|
char *p, *slashp; |
char *p, *slashp; |
|
|
while ((p = strsep(&path, ":")) != NULL) { |
while ((p = strsep(&path, ":")) != NULL) { |
|
/* Skip empty fields */ |
|
if (*p == '\0') |
|
continue; |
|
|
if ((ep = malloc(sizeof(ENTRY))) == NULL) |
if ((ep = malloc(sizeof(ENTRY))) == NULL) |
err(1, NULL); |
err(1, NULL); |
|
|
|
|
{ |
{ |
ENTRY *ep, *e_sufp, *e_tag; |
ENTRY *ep, *e_sufp, *e_tag; |
TAG *missp, *sufp; |
TAG *missp, *sufp; |
int anyfound, cnt, found, globres; |
int anyfound, cnt, found; |
char *p, buf[MAXPATHLEN]; |
char *p, buf[MAXPATHLEN]; |
|
|
anyfound = 0; |
anyfound = 0; |