version 1.28, 2014/07/12 03:32:00 |
version 1.29, 2015/01/20 09:00:16 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#include "defs.h" |
#include <ctype.h> |
|
#include <errno.h> |
|
#include <limits.h> |
|
#include <paths.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
|
|
#include "client.h" |
#include "y.tab.h" |
#include "y.tab.h" |
|
|
#include <netdb.h> |
|
#include <sys/ioctl.h> |
|
|
|
/* |
/* |
* Remote distribution program. |
* Remote distribution program. |
|
|
struct namelist *nl, *prev; |
struct namelist *nl, *prev; |
char *cp; |
char *cp; |
struct namelist *files, *hosts; |
struct namelist *files, *hosts; |
struct subcmd *cmds; |
struct subcmd *scmds; |
char *dest; |
char *dest; |
static struct namelist tnl; |
static struct namelist tnl; |
int i; |
int i; |
|
|
exit(1); |
exit(1); |
|
|
if (dest == NULL || *dest == '\0') |
if (dest == NULL || *dest == '\0') |
cmds = NULL; |
scmds = NULL; |
else { |
else { |
cmds = makesubcmd(INSTALL); |
scmds = makesubcmd(INSTALL); |
cmds->sc_options = options; |
scmds->sc_options = options; |
cmds->sc_name = dest; |
scmds->sc_name = dest; |
} |
} |
|
|
debugmsg(DM_MISC, "docmdargs()\nfiles = %s", getnlstr(files)); |
debugmsg(DM_MISC, "docmdargs()\nfiles = %s", getnlstr(files)); |
debugmsg(DM_MISC, "host = %s", getnlstr(hosts)); |
debugmsg(DM_MISC, "host = %s", getnlstr(hosts)); |
|
|
insert(NULL, files, hosts, cmds); |
insert(NULL, files, hosts, scmds); |
docmds(NULL, 0, NULL); |
docmds(NULL, 0, NULL); |
} |
} |
|
|