[BACK]Return to rdist.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdist

Diff for /src/usr.bin/rdist/rdist.c between version 1.28 and 1.29

version 1.28, 2014/07/12 03:32:00 version 1.29, 2015/01/20 09:00:16
Line 29 
Line 29 
  * 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.
Line 357 
Line 363 
         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;
Line 388 
Line 394 
                 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);
 }  }
   

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29