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

Diff for /src/usr.bin/oldrdist/Attic/docmd.c between version 1.4 and 1.5

version 1.4, 1996/07/19 21:57:31 version 1.5, 1996/07/25 05:13:47
Line 245 
Line 245 
                 ruser = user;                  ruser = user;
         if (!qflag)          if (!qflag)
                 printf("updating host %s\n", rhost);                  printf("updating host %s\n", rhost);
         (void) sprintf(buf, "%s -Server%s", _PATH_RDIST, qflag ? " -q" : "");          (void) snprintf(buf, BUFSIZ, "%s -Server%s", _PATH_RDIST,
                   qflag ? " -q" : "");
 #if     defined(DIRECT_RCMD)  #if     defined(DIRECT_RCMD)
         if (port < 0) {          if (port < 0) {
                 struct servent *sp;                  struct servent *sp;
Line 564 
Line 565 
         /*          /*
          * Create a pipe to mailling program.           * Create a pipe to mailling program.
          */           */
         (void)sprintf(buf, "%s -oi -t", _PATH_SENDMAIL);          (void) snprintf(buf, BUFSIZ, "%s -oi -t", _PATH_SENDMAIL);
         pf = popen(buf, "w");          pf = popen(buf, "w");
         if (pf == NULL) {          if (pf == NULL) {
                 error("notify: \"%s\" failed\n", _PATH_SENDMAIL);                  error("notify: \"%s\" failed\n", _PATH_SENDMAIL);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5