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

Diff for /src/usr.bin/mail/edit.c between version 1.20 and 1.21

version 1.20, 2017/03/28 09:14:43 version 1.21, 2019/06/28 13:35:01
Line 172 
Line 172 
                 while ((t = getc(fp)) != EOF)                  while ((t = getc(fp)) != EOF)
                         (void)putc(t, nf);                          (void)putc(t, nf);
         (void)fflush(nf);          (void)fflush(nf);
         if (fstat(fileno(nf), &statb) < 0)          if (fstat(fileno(nf), &statb) == -1)
                 modtime = 0;                  modtime = 0;
         else          else
                 modtime = statb.st_mtime;                  modtime = statb.st_mtime;
Line 211 
Line 211 
                 (void)rm(tempname);                  (void)rm(tempname);
                 goto out;                  goto out;
         }          }
         if (stat(tempname, &statb) < 0) {          if (stat(tempname, &statb) == -1) {
                 warn("%s", tempname);                  warn("%s", tempname);
                 goto out;                  goto out;
         }          }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21