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

Diff for /src/usr.bin/mail/collect.c between version 1.18 and 1.18.2.1

version 1.18, 2000/04/26 15:47:30 version 1.18.2.1, 2000/10/06 21:16:14
Line 123 
Line 123 
             "%s/mail.RsXXXXXXXXXX", tmpdir);              "%s/mail.RsXXXXXXXXXX", tmpdir);
         if ((fd = mkstemp(tempname)) == -1 ||          if ((fd = mkstemp(tempname)) == -1 ||
             (collf = Fdopen(fd, "w+")) == NULL) {              (collf = Fdopen(fd, "w+")) == NULL) {
                 warn(tempname);                  warn("%s", tempname);
                 goto err;                  goto err;
         }          }
         (void)rm(tempname);          (void)rm(tempname);
Line 305 
Line 305 
                                 break;                                  break;
                         }                          }
                         if ((fbuf = Fopen(cp, "r")) == NULL) {                          if ((fbuf = Fopen(cp, "r")) == NULL) {
                                 warn(cp);                                  warn("%s", cp);
                                 break;                                  break;
                         }                          }
                         printf("\"%s\" ", cp);                          printf("\"%s\" ", cp);
Line 465 
Line 465 
                         lc++;                          lc++;
                 (void)putc(c, of);                  (void)putc(c, of);
                 if (ferror(of)) {                  if (ferror(of)) {
                         warn(name);                          warn("%s", name);
                         (void)Fclose(of);                          (void)Fclose(of);
                         return(-1);                          return(-1);
                 }                  }
Line 516 
Line 516 
             "%s/mail.ReXXXXXXXXXX", tmpdir);              "%s/mail.ReXXXXXXXXXX", tmpdir);
         if ((fd = mkstemp(tempname)) == -1 ||          if ((fd = mkstemp(tempname)) == -1 ||
             (nf = Fdopen(fd, "w+")) == NULL) {              (nf = Fdopen(fd, "w+")) == NULL) {
                 warn(tempname);                  warn("%s", tempname);
                 goto out;                  goto out;
         }          }
         (void)rm(tempname);          (void)rm(tempname);
Line 590 
Line 590 
                 touch(mp);                  touch(mp);
                 printf(" %d", *msgvec);                  printf(" %d", *msgvec);
                 if (sendmessage(mp, fp, ig, tabst) < 0) {                  if (sendmessage(mp, fp, ig, tabst) < 0) {
                         warn(fn);                          warn("%s", fn);
                         return(-1);                          return(-1);
                 }                  }
         }          }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.18.2.1