version 1.14, 2003/04/05 20:31:58 |
version 1.15, 2003/05/06 22:10:11 |
|
|
|
|
new = (struct namelist *) xmalloc(sizeof(struct namelist)); |
new = (struct namelist *) xmalloc(sizeof(struct namelist)); |
new->n_name = xstrdup(name); |
new->n_name = xstrdup(name); |
|
new->n_regex = NULL; |
new->n_next = NULL; |
new->n_next = NULL; |
|
|
if (*hostlist) { |
if (*hostlist) { |
|
|
struct namelist *files, *hosts; |
struct namelist *files, *hosts; |
struct subcmd *cmds; |
struct subcmd *cmds; |
char *dest; |
char *dest; |
static struct namelist tnl = { NULL, NULL }; |
static struct namelist tnl; |
int i; |
int i; |
|
|
if (nargs < 2) |
if (nargs < 2) |
|
|
if ((dest = strchr(cp, ':')) != NULL) |
if ((dest = strchr(cp, ':')) != NULL) |
*dest++ = '\0'; |
*dest++ = '\0'; |
tnl.n_name = cp; |
tnl.n_name = cp; |
|
tnl.n_regex = NULL; |
|
tnl.n_next = NULL; |
hosts = expand(&tnl, E_ALL); |
hosts = expand(&tnl, E_ALL); |
if (nerrs) |
if (nerrs) |
exit(1); |
exit(1); |